mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 23:03:45 +02:00
Fix password reset system
This commit is contained in:
@@ -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'
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user