You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: passwords.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ To properly implement support for allowing users to reset their passwords, we wi
37
37
<aname="requesting-the-password-reset-link"></a>
38
38
### Requesting The Password Reset Link
39
39
40
+
#### The Password Reset Link Request Form
41
+
40
42
First, we will define the routes that are needed to request password reset links. To get started, we will define a route that returns a view with the password reset link request form:
41
43
42
44
Route::get('/forgot-password', function () {
@@ -45,6 +47,8 @@ First, we will define the routes that are needed to request password reset links
45
47
46
48
The view that is returned by this route should have an `email` field within its form, which will allow the user to request a password reset link for a given email address.
47
49
50
+
#### Handling The Form Submission
51
+
48
52
Next, we will define a route will handle the form request from the "forgot password" view. This route will be responsible for validating the email address and sending the password reset request to the corresponding user:
49
53
50
54
use Illuminate\Http\Request;
@@ -66,7 +70,7 @@ Before moving on, let's examine this route in more detail. First, the request's
66
70
67
71
The `sendResetLink` method returns a "status" slug. This status may be translated using Laravel's [localization](/docs/{{version}}/localization) helpers in order to display a user-friendly message to the user regarding the status of their request. The translation of the password reset status is determined by your application's `resources/lang/{lang}/password.php` language file.
68
72
69
-
> {tip} When manually implementing password resets, you are required to define the contents of the the views yourself. If you would like scaffolding that includes all necessary authentication and verification views, check out [Laravel Jetstream](https://jetstream.laravel.com).
73
+
> {tip} When manually implementing password resets, you are required to define the contents of the the views and routes yourself. If you would like scaffolding that includes all necessary authentication and verification logic, check out [Laravel Jetstream](https://jetstream.laravel.com).
0 commit comments