Some new login / logout routes

This commit is contained in:
James Cole 2016-09-16 09:21:36 +02:00
parent fccdf56c5d
commit bb58f605f7
4 changed files with 24 additions and 7 deletions

19
resources/lang/en_US/auth.php Executable file
View File

@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'failed' => 'These credentials do not match our records.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
];

View File

@ -24,13 +24,11 @@ Route::group(
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\ResetPasswordController@showResetForm');
Route::post('/password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail');
Route::post('/password/reset', 'Auth\ResetPasswordController@reset');
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm');
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'); #
}
@ -42,7 +40,7 @@ Route::group(
Route::group(
['middleware' => 'user-simple-auth'], function () {
Route::get('/error', 'HomeController@displayError');
Route::post('logout', ['uses' => 'Auth\LoginController@logout','as' => 'logout']);
Route::any('logout', ['uses' => 'Auth\LoginController@logout','as' => 'logout']);
Route::get('/flush', ['uses' => 'HomeController@flush']);
}
);