remove duplicate authentication code

This commit is contained in:
Uwe Steinmann 2019-01-17 18:24:29 +01:00
parent c623220830
commit d1a8541d02

View File

@ -138,14 +138,6 @@ class SeedDMS_Controller_Login extends SeedDMS_Controller_Common {
return false;
}
if(!$user && isset($GLOBALS['SEEDDMS_HOOKS']['authentication'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['authentication'] as $authObj) {
if(!$user && method_exists($authObj, 'authenticate')) {
$user = $authObj->authenticate($dms, $settings, $login, $pwd);
}
}
}
/* Clear login failures if login was successful */
$user->clearLoginFailures();