diff --git a/routes/web.php b/routes/web.php index 901e1d2da4..ddc158ee2a 100755 --- a/routes/web.php +++ b/routes/web.php @@ -17,19 +17,20 @@ Route::group( ['middleware' => 'user-not-logged-in'], function () { // Authentication Routes... - Route::get('/login', 'Auth\AuthController@showLoginForm'); - Route::post('/login', 'Auth\AuthController@login'); + Route::get('login', 'Auth\LoginController@showLoginForm')->name('login'); + Route::post('login', 'Auth\LoginController@login'); // Registration Routes... - Route::get('/register', ['uses' => 'Auth\AuthController@showRegistrationForm', 'as' => 'register']); - Route::post('/register', 'Auth\AuthController@register'); + Route::get('/register', ['uses' => 'Auth\RegisterController@showRegistrationForm', 'as' => 'register']); + Route::post('/register', 'Auth\RegisterController@register'); Route::get('/password/reset', 'Auth\PasswordController@getReset'); // Password Reset Routes... - Route::get('/password/reset/{token?}', 'Auth\PasswordController@showResetForm'); - Route::post('/password/email', 'Auth\PasswordController@sendResetLinkEmail'); - Route::post('/password/reset', 'Auth\PasswordController@reset'); + Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm'); + Route::post('/password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail'); + Route::post('/password/reset', 'Auth\ResetPasswordController@reset'); + Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm'); } @@ -41,7 +42,7 @@ Route::group( Route::group( ['middleware' => 'user-simple-auth'], function () { Route::get('/error', 'HomeController@displayError'); - Route::get('/logout', ['uses' => 'Auth\AuthController@logout', 'as' => 'logout']); + Route::post('logout', ['uses' => 'Auth\LoginController@logout','as' => 'logout']); Route::get('/flush', ['uses' => 'HomeController@flush']); } );