mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Minor fixes to editor and auth
This commit is contained in:
@ -25,6 +25,7 @@ class AuthController extends Controller
|
||||
|
||||
protected $loginPath = '/login';
|
||||
protected $redirectPath = '/';
|
||||
protected $redirectAfterLogout = '/login';
|
||||
|
||||
|
||||
/**
|
||||
|
@ -38,7 +38,7 @@ class Authenticate
|
||||
if ($request->ajax()) {
|
||||
return response('Unauthorized.', 401);
|
||||
} else {
|
||||
return redirect()->guest('auth/login');
|
||||
return redirect()->guest('/login');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -63,6 +63,7 @@ Route::group(['middleware' => 'auth'], function() {
|
||||
|
||||
|
||||
});
|
||||
|
||||
Route::get('/login', 'Auth\AuthController@getLogin');
|
||||
Route::post('/login', 'Auth\AuthController@postLogin');
|
||||
Route::get('/logout', 'Auth\AuthController@getLogout');
|
||||
|
Reference in New Issue
Block a user