mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
set userid only if external authentification succeds
This commit is contained in:
parent
1451659ba2
commit
bb50129d44
|
@ -76,7 +76,8 @@ if(isset($GLOBALS['SEEDDMS_HOOKS']['authentication'])) {
|
|||
foreach($GLOBALS['SEEDDMS_HOOKS']['authentication'] as $authObj) {
|
||||
if(method_exists($authObj, 'authenticate')) {
|
||||
$user = $authObj->authenticate($dms, $settings, $login, $pwd);
|
||||
$userid = $user->getID();
|
||||
if(is_object($user))
|
||||
$userid = $user->getID();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user