Fix password reset system
This commit is contained in:
parent
8e92f96999
commit
861af87e93
7 changed files with 11 additions and 14 deletions
|
@ -19,6 +19,7 @@ class PasswordController extends Controller
|
|||
*/
|
||||
|
||||
use ResetsPasswords;
|
||||
|
||||
protected $redirectTo = '/';
|
||||
|
||||
/**
|
||||
|
|
|
@ -35,26 +35,21 @@ class AuthRoutes {
|
|||
|
||||
// Show Password Reset Form
|
||||
$router->get('password', [
|
||||
'as' => 'auth.password',
|
||||
'uses' => 'Auth\PasswordController@getEmail'
|
||||
]);
|
||||
|
||||
// Handle Password Reset
|
||||
$router->post('password', [
|
||||
'as' => 'auth.password.submit',
|
||||
'uses' => 'Auth\PasswordController@postEmail'
|
||||
], function () {
|
||||
return redirect('auth/password')->with('sent', true);
|
||||
});
|
||||
]);
|
||||
|
||||
// Show Verification Checkpoint
|
||||
$router->get('password/verify/{token}', [
|
||||
'as' => 'auth.verify',
|
||||
$router->get('password/reset/{token}', [
|
||||
'uses' => 'Auth\PasswordController@getReset'
|
||||
]);
|
||||
|
||||
// Handle Verification
|
||||
$router->post('password/verify', [
|
||||
$router->post('password/reset', [
|
||||
'uses' => 'Auth\PasswordController@postReset'
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue