mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Fixed #11100 for individual users
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
64b582c657
commit
d4f7b5f80c
|
@ -625,9 +625,8 @@ class UsersController extends Controller
|
|||
$credentials = ['email' => trim($user->email)];
|
||||
|
||||
try {
|
||||
\Password::sendResetLink($credentials, function (Message $message) use ($user) {
|
||||
$message->subject($this->getEmailSubject());
|
||||
});
|
||||
|
||||
Password::sendResetLink($credentials);
|
||||
|
||||
return redirect()->back()->with('success', trans('admin/users/message.password_reset_sent', ['email' => $user->email]));
|
||||
} catch (\Exception $e) {
|
||||
|
|
Loading…
Reference in a new issue