set userid only if external authentification succeds

This commit is contained in:
Uwe Steinmann 2013-07-31 17:28:44 +02:00
parent 1451659ba2
commit bb50129d44

View File

@ -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();
}
}
}