Finalize login page!
This commit is contained in:
parent
d63624f607
commit
6d970a4cc3
10 changed files with 40 additions and 16 deletions
|
@ -9,14 +9,19 @@
|
|||
|
|
||||
*/
|
||||
Route::group(['middleware' => 'guest'], function () {
|
||||
// Login specific routes
|
||||
Route::get('/login', 'LoginController@showLoginForm')->name('auth.login');
|
||||
// These routes are defined so that we can continue to reference them programatically.
|
||||
// They all route to the same controller function which passes off to Vuejs.
|
||||
Route::get('/login', 'LoginController@index')->name('auth.login');
|
||||
Route::get('/password', 'LoginController@index')->name('auth.forgot-password');
|
||||
Route::get('/password/reset/{token}', 'LoginController@index')->name('auth.reset');
|
||||
|
||||
// Login endpoints.
|
||||
Route::post('/login', 'LoginController@login')->middleware('recaptcha');
|
||||
Route::post('/login/checkpoint', 'LoginCheckpointController')->name('auth.login-checkpoint');
|
||||
|
||||
// Forgot password route. A post to this endpoint will trigger an
|
||||
// email to be sent containing a reset token.
|
||||
Route::post('/password', 'ForgotPasswordController@sendResetLinkEmail')->name('auth.forgot-password')->middleware('recaptcha');
|
||||
Route::post('/password', 'ForgotPasswordController@sendResetLinkEmail')->middleware('recaptcha');
|
||||
|
||||
// Password reset routes. This endpoint is hit after going through
|
||||
// the forgot password routes to acquire a token (or after an account
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue