Fix password reset system

This commit is contained in:
Dane Everitt 2016-01-16 21:57:10 -05:00
parent 8e92f96999
commit 861af87e93
7 changed files with 11 additions and 14 deletions

View file

@ -19,6 +19,7 @@ class PasswordController extends Controller
*/
use ResetsPasswords;
protected $redirectTo = '/';
/**

View file

@ -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'
]);