1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Started social registration

This commit is contained in:
Dan Brown
2015-09-05 17:42:05 +01:00
parent 6b6f6d2c92
commit 2c3fb557d6
17 changed files with 390 additions and 250 deletions

View File

@ -34,8 +34,7 @@ class Authenticate
*/
public function handle($request, Closure $next)
{
$sitePublic = Setting::get('app-public', false) === 'true';
if ($this->auth->guest() && !$sitePublic) {
if ($this->auth->guest() && !Setting::get('app-public')) {
if ($request->ajax()) {
return response('Unauthorized.', 401);
} else {