Browse Source

run authorizedTrigger after success login if set

Piotr Labudda 6 years ago
parent
commit
fcfa0f8c75
1 changed files with 4 additions and 0 deletions
  1. 4 0
      SE/se-lib/User.php

+ 4 - 0
SE/se-lib/User.php

@@ -410,6 +410,10 @@ class User {
 			$userAcl->fetchAllPerms();
 			$_SESSION['ADM_ACL_LOADED'] = true;
 
+			if ($authClass && is_callable([ $authClass, 'authorizedTrigger' ])) {
+				$user = $authClass::authorizedTrigger($login, $pass);
+			}
+
 			return true;
 		}