. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; use FireflyIII\Support\Request\ChecksLogin; use Illuminate\Foundation\Http\FormRequest; /** * Class UserRegistrationRequest. * * @codeCoverageIgnore */ class UserRegistrationRequest extends FormRequest { use ChecksLogin; /** * Verify the request. * * @return bool */ public function authorize(): bool { // Only everybody return true; } /** * Rules for this request. * * @return array */ public function rules(): array { // fixed return [ 'email' => 'email|required', 'password' => 'confirmed|secure_password', ]; } }