. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; /** * Class ProfileFormRequest. * * @codeCoverageIgnore */ class ProfileFormRequest extends Request { /** * Verify the request. * * @return bool */ public function authorize(): bool { // Only allow logged in users return auth()->check(); } /** * Rules for this request. * * @return array */ public function rules(): array { // fixed return [ 'current_password' => 'required', 'new_password' => 'required|confirmed|secure_password|min:16', 'new_password_confirmation' => 'required', ]; } }