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