mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Only allow activated users to reset their password
This commit is contained in:
parent
2d0df24ef3
commit
25097bce31
|
@ -55,7 +55,10 @@ class ForgotPasswordController extends Controller
|
||||||
// to send the link, we will examine the response then see the message we
|
// 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.
|
// need to show to the user. Finally, we'll send out a proper response.
|
||||||
$response = $this->broker()->sendResetLink(
|
$response = $this->broker()->sendResetLink(
|
||||||
$request->only('email')
|
array_merge(
|
||||||
|
$request->only('email'),
|
||||||
|
['activated' => '1']
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($response === \Password::RESET_LINK_SENT) {
|
if ($response === \Password::RESET_LINK_SENT) {
|
||||||
|
|
Loading…
Reference in a new issue