Skip to content

A free open source IT asset/license management system

Only allow activated users to reset their password

snipe25097bce31d2
diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php
index 0282bbeb5d..c64710ac38 100644
--- a/app/Http/Controllers/Auth/ForgotPasswordController.php
+++ b/app/Http/Controllers/Auth/ForgotPasswordController.php
@@ -55,7 +55,10 @@ class ForgotPasswordController extends Controller
// to send the link, we will examine the response then see the message we
// need to show to the user. Finally, we'll send out a proper response.
$response = $this->broker()->sendResetLink(
- $request->only('email')
+ array_merge(
+ $request->only('email'),
+ ['activated' => '1']
+ )
);
if ($response === \Password::RESET_LINK_SENT) {