Skip to content

Commit 33a0f39

Browse files
authored
Merge pull request #2918 from TKuypers/4.2
[4.2] Changed Password Reminder Controller explanation
2 parents 9dcfede + d1daa18 commit 33a0f39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

security.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ Now we're ready to generate the password reminder controller. To automatically g
236236

237237
php artisan auth:reminders-controller
238238

239-
The generated controller will already have a `getRemind` method that handles showing your password reminder form. All you need to do is create a `password.remind` [view](/docs/4.2/responses#views). This view should have a basic form with an `email` field. The form should POST to the `RemindersController@postRemind` action.
239+
The generated controller will already have a `getRemind` method that handles showing your password reminder form. All you need to do is create a `password.remind` [Template](/docs/4.2/templates) by creating a file `remind.blade.php` in the `app/views/password/` directory.
240+
This view should have a basic form with an `email` field. The form should POST to the `RemindersController@postRemind` action.
240241

241242
A simple form on the `password.remind` view might look like this:
242243

@@ -254,7 +255,7 @@ Within the `postRemind` controller method you may modify the message instance be
254255
$message->subject('Password Reminder');
255256
});
256257

257-
Your user will receive an e-mail with a link that points to the `getReset` method of the controller. The password reminder token, which is used to identify a given password reminder attempt, will also be passed to the controller method. The action is already configured to return a `password.reset` view which you should build. The `token` will be passed to the view, and you should place this token in a hidden form field named `token`. In addition to the `token`, your password reset form should contain `email`, `password`, and `password_confirmation` fields. The form should POST to the `RemindersController@postReset` method.
258+
Your user will receive an e-mail with a link that points to the `getReset` method of the controller. The password reminder token, which is used to identify a given password reminder attempt, will also be passed to the controller method. The action is already configured to return a `password.reset` template which you should build. The `token` will be passed to the view, and you should place this token in a hidden form field named `token`. In addition to the `token`, your password reset form should contain `email`, `password`, and `password_confirmation` fields. The form should POST to the `RemindersController@postReset` method.
258259

259260
A simple form on the `password.reset` view might look like this:
260261

0 commit comments

Comments
 (0)