]> BookStack Code Mirror - bookstack/commitdiff
Merge branch 'feature/public-login-redirect' of git://github.com/Xiphoseer/BookStack...
authorDan Brown <redacted>
Sat, 14 Mar 2020 17:46:30 +0000 (17:46 +0000)
committerDan Brown <redacted>
Sat, 14 Mar 2020 17:46:30 +0000 (17:46 +0000)
1  2 
app/Http/Controllers/Auth/LoginController.php
resources/views/common/header.blade.php

index 524e4a11af000be035e647b7073900fdfa5aef93,2d3871ba06f865bc13cef7160394dc12b4abf407..3004acf3c0a2f8f157caad1229b7b6c75cfb61cc
                      @endif
  
                      @if(!signedInUser())
 -                        @if(setting('registration-enabled', false))
 -                            <a href="{{ url('/register') }}">@icon('new-user') {{ trans('auth.sign_up') }}</a>
 +                        @if(setting('registration-enabled') && config('auth.method') === 'standard')
 +                            <a href="{{ url('/register') }}">@icon('new-user'){{ trans('auth.sign_up') }}</a>
                          @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>
++                        <a href="{{ action('Auth\LoginController@getLogin', ['intended' => url()->current()]) }}">@icon('login'){{ trans('auth.log_in') }}</a>
                      @endif
                  </div>
                  @if(signedInUser())