// Stop here
throw new UserAuthorizationException($this, self::EXCEPTION_AUTH_DATA_INVALID);
- } // END - if
+ }
// Regular user account
$className = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('user_class');
// Set class
$className = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('guest_class');
$methodName = 'createGuestByUserName';
- } // END - if
+ }
// Does the guest class exist?
if (!class_exists($className)) {
// Then abort here
throw new NoClassException (array($this, $className), self::EXCEPTION_CLASS_NOT_FOUND);
- } // END - if
+ }
// Now try the dynamic login
$userInstance = call_user_func_array(array($className, $methodName), array($authLogin));
if ($userInstance->getPasswordHash() !== $authHash) {
// Mismatching password
throw new UserPasswordMismatchException(array($this, $userInstance), BaseUser::EXCEPTION_USER_PASS_MISMATCH);
- } // END - if
+ }
// Remember auth and user instances in registry
GenericRegistry::getRegistry()->addInstance('auth', $authInstance);