2016-01-21 03:39:02 +00:00
|
|
|
<?php
|
|
|
|
|
2017-11-18 21:09:58 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Authentication Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /auth
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
Route::group(['middleware' => 'guest'], function () {
|
2018-04-07 21:17:51 +00:00
|
|
|
// Login specific routes
|
2017-11-18 21:09:58 +00:00
|
|
|
Route::get('/login', 'LoginController@showLoginForm')->name('auth.login');
|
|
|
|
Route::post('/login', 'LoginController@login')->middleware('recaptcha');
|
2018-04-08 20:18:13 +00:00
|
|
|
Route::post('/login/checkpoint', 'LoginCheckpointController')->name('auth.login-checkpoint');
|
2018-04-07 21:17:51 +00:00
|
|
|
|
|
|
|
// Forgot password route. A post to this endpoint will trigger an
|
|
|
|
// email to be sent containing a reset token.
|
2018-04-08 20:18:13 +00:00
|
|
|
Route::post('/password', 'ForgotPasswordController@sendResetLinkEmail')->name('auth.forgot-password')->middleware('recaptcha');
|
2018-04-07 21:17:51 +00:00
|
|
|
|
|
|
|
// Password reset routes. This endpoint is hit after going through
|
|
|
|
// the forgot password routes to acquire a token (or after an account
|
|
|
|
// is created).
|
2018-04-08 20:18:13 +00:00
|
|
|
Route::post('/password/reset', 'ResetPasswordController')->name('auth.reset-password')->middleware('recaptcha');
|
2017-11-18 21:09:58 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Routes Accessable only when logged in
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /auth
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
Route::get('/logout', 'LoginController@logout')->name('auth.logout')->middleware('auth');
|