Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(chore): Remove unused things
· f74f5014
Emiliano Balbuena
authored
Nov 14, 2019
f74f5014
(fix): 500 when no Session
· 1f14506e
Emiliano Balbuena
authored
Nov 14, 2019
1f14506e
Hide whitespace changes
Inline
Side-by-side
Core/SSO/Manager.php
View file @
1f14506e
...
...
@@ -7,7 +7,6 @@
namespace
Minds\Core\SSO
;
use
Exception
;
use
Lcobucci\JWT\Token
as
JwtToken
;
use
Minds\Common\Jwt
;
use
Minds\Core\Config
;
use
Minds\Core\Data\cache\abstractCacher
;
...
...
@@ -19,9 +18,6 @@ class Manager
/** @var int */
const
JTW_EXPIRE
=
300
;
/** @var string */
const
SESSION_COOKIE
=
'minds_sess'
;
/** @var Config */
protected
$config
;
...
...
@@ -93,7 +89,7 @@ class Manager
$now
=
time
();
$session
=
$this
->
sessions
->
getSession
();
if
(
!
$session
->
getUserGuid
())
{
if
(
!
$session
||
!
$session
->
getUserGuid
())
{
return
null
;
}
...
...