mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 01:11:37 -06:00
Changes for login routes.
This commit is contained in:
parent
b872ab8b86
commit
51d9f041ae
@ -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']);
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user