2016-01-21 04:39:02 +01:00
|
|
|
<?php
|
|
|
|
|
2017-11-18 22:09:58 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Authentication Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /auth
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
Route::group(['middleware' => 'guest'], function () {
|
|
|
|
Route::get('/login', 'LoginController@showLoginForm')->name('auth.login');
|
|
|
|
Route::get('/password/reset/{token}', 'ResetPasswordController@showResetForm')->name('auth.reset');
|
|
|
|
|
|
|
|
Route::post('/login', 'LoginController@login')->middleware('recaptcha');
|
2018-04-02 00:46:16 +02:00
|
|
|
Route::post('/login/checkpoint', 'LoginController@loginCheckpoint')->name('auth.checkpoint');
|
2017-11-18 22:09:58 +01:00
|
|
|
Route::post('/password', 'ForgotPasswordController@sendResetLinkEmail')->middleware('recaptcha');
|
|
|
|
Route::post('/password/reset', 'ResetPasswordController@reset')->name('auth.reset.post')->middleware('recaptcha');
|
|
|
|
Route::post('/password/reset/{token}', 'ForgotPasswordController@sendResetLinkEmail')->middleware('recaptcha');
|
|
|
|
});
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Routes Accessable only when logged in
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /auth
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
Route::get('/logout', 'LoginController@logout')->name('auth.logout')->middleware('auth');
|