Merge branch 'feature/public-login-redirect' of git://github.com/Xiphoseer/BookStack into Xiphoseer-feature/public-login-redirect
This commit is contained in:
commit
a95588dc2e
|
@ -76,6 +76,10 @@ class LoginController extends Controller
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($request->has('intended')) {
|
||||||
|
redirect()->setIntendedUrl($request->get('intended'));
|
||||||
|
}
|
||||||
|
|
||||||
return view('auth.login', [
|
return view('auth.login', [
|
||||||
'socialDrivers' => $socialDrivers,
|
'socialDrivers' => $socialDrivers,
|
||||||
'authMethod' => $authMethod,
|
'authMethod' => $authMethod,
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
@if(setting('registration-enabled') && config('auth.method') === 'standard')
|
@if(setting('registration-enabled') && config('auth.method') === 'standard')
|
||||||
<a href="{{ url('/register') }}">@icon('new-user'){{ trans('auth.sign_up') }}</a>
|
<a href="{{ url('/register') }}">@icon('new-user'){{ trans('auth.sign_up') }}</a>
|
||||||
@endif
|
@endif
|
||||||
<a href="{{ url('/login') }}">@icon('login'){{ trans('auth.log_in') }}</a>
|
<a href="{{ action('Auth\LoginController@getLogin', ['intended' => url()->current()]) }}">@icon('login'){{ trans('auth.log_in') }}</a>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@if(signedInUser())
|
@if(signedInUser())
|
||||||
|
|
Loading…
Reference in New Issue