mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-18 15:41:42 +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) {
|
foreach($GLOBALS['SEEDDMS_HOOKS']['authentication'] as $authObj) {
|
||||||
if(method_exists($authObj, 'authenticate')) {
|
if(method_exists($authObj, 'authenticate')) {
|
||||||
$user = $authObj->authenticate($dms, $settings, $login, $pwd);
|
$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