dimanche 25 septembre 2016

How can i generate a token which will expire after some time just like the token field in password_reset table in laravel 5.1?

/*
|--------------------------------------------------------------------------
| Password Reset Settings
|--------------------------------------------------------------------------
|
| Here you may set the options for resetting passwords including the view
| that is your password reset e-mail. You can also set the name of the
| table that maintains all of the reset tokens for your application.
|
| The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/

'password' => [
    'email' => 'emails.password',
    'table' => 'password_resets',
    'expire' => 60,
],

I want to generate a token just like the token in this password_resets table. But i don't understand how this is working.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire