]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/ForgotPasswordController.php
Merge branch 'master' of https://github.com/haxatron/BookStack into haxatron_upload_issue
[bookstack] / app / Http / Controllers / Auth / ForgotPasswordController.php
index 3df0608f87ffad7f09754ce2f24e6d82694b716b..8eaee08a2b49985dbcfc299681f7be0577d48b7a 100644 (file)
@@ -56,7 +56,7 @@ class ForgotPasswordController extends Controller
             $this->logActivity(ActivityType::AUTH_PASSWORD_RESET, $request->get('email'));
         }
 
-        if ($response === Password::RESET_LINK_SENT || $response === Password::INVALID_USER) {
+        if (in_array($response, [Password::RESET_LINK_SENT, Password::INVALID_USER, Password::RESET_THROTTLED])) {
             $message = trans('auth.reset_password_sent', ['email' => $request->get('email')]);
             $this->showSuccessNotification($message);