Skip to content

Commit

Permalink
Update passwords.md
Browse files Browse the repository at this point in the history
  • Loading branch information
demn98 authored Jan 9, 2025
1 parent dfd5651 commit 0219abb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions passwords.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
git: d725349b2cc2eb421950001a2831336154843999
git: c4b06525d9893aaa7d45c71e162945fde065238e
---

# Сброс пароля
Expand Down Expand Up @@ -67,7 +67,7 @@ git: d725349b2cc2eb421950001a2831336154843999
$request->only('email')
);

return $status === Password::RESET_LINK_SENT
return $status === Password::ResetLinkSent
? back()->with(['status' => __($status)])
: back()->withErrors(['email' => __($status)]);
})->middleware('guest')->name('password.email');
Expand Down Expand Up @@ -130,7 +130,7 @@ git: d725349b2cc2eb421950001a2831336154843999
}
);

return $status === Password::PASSWORD_RESET
return $status === Password::PasswordReset
? redirect()->route('login')->with('status', __($status))
: back()->withErrors(['email' => [__($status)]]);
})->middleware('guest')->name('password.update');
Expand Down

0 comments on commit 0219abb

Please sign in to comment.