Merge pull request #11111 from snipe/fixes/individual_pass_reset

Fixed #11100 for individual users
This commit is contained in:
snipe 2022-05-16 12:08:08 -07:00 committed by GitHub
commit b2e7572fe0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {