Files
cachet-docker/app/routes/auth.php
Noah Bass 2a98b17a57 added a ssl fix for form in /auth/login
added a new filter: SslFixFilter
added SslFixFilter to auth route
added SslFixFilter to RoutingServiceProvider
2015-01-08 17:07:48 -05:00

24 lines
716 B
PHP

<?php
Route::group(['before' => 'has_setting:app_name', 'namespace' => 'CachetHQ\Cachet\Http\Controllers'], function () {
// Login routes
Route::get('/auth/login', [
'before' => 'guest',
'after' => 'sslfix',
'as' => 'login',
'uses' => 'AuthController@showLogin',
]);
Route::post('/auth/login', [
'before' => 'guest|csrf|login_throttling',
'as' => 'logout',
'uses' => 'AuthController@postLogin',
]);
});
Route::group(['before' => 'auth', 'namespace' => 'CachetHQ\Cachet\Http\Controllers'], function () {
Route::get('/auth/logout', [
'as' => 'logout',
'uses' => 'AuthController@logoutAction',
]);
});