mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
bug fix and formatting fix
This commit is contained in:
parent
6898119891
commit
d99db5c63b
|
@ -76,7 +76,7 @@ class LoginController extends Controller
|
|||
|
||||
//If the environment is set to ALWAYS require SAML, go straight to the SAML route.
|
||||
//We don't need to check other settings, as this should override those.
|
||||
if(config('REQUIRE_SAML'))
|
||||
if(config('app.require_saml'))
|
||||
{
|
||||
return redirect()->route('saml.login');
|
||||
}
|
||||
|
@ -209,7 +209,7 @@ class LoginController extends Controller
|
|||
public function login(Request $request)
|
||||
{
|
||||
//If the environment is set to ALWAYS require SAML, return access denied
|
||||
if(config('REQUIRE_SAML'))
|
||||
if(config('app.require_saml'))
|
||||
{
|
||||
return view('errors.403');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue