// Probe on member instance
try {
// Try to instance member login class
- $loginInstance = self::createObjectByConfiguredName('user_login_class', array($requestInstance));
+ $loginInstance = self::createObjectByConfiguredName('user_login_class');
+
+ // Test login
+ $loginInstance->testLogin($requestInstance);
} catch (UnexpectedGuestAccountException $e) {
// Then try guest login
- $loginInstance = self::createObjectByConfiguredName('guest_login_class', array($requestInstance));
+ $loginInstance = self::createObjectByConfiguredName('guest_login_class');
+
+ // Test login again
+ $loginInstance->testLogin($requestInstance);
}
// Set the instance in registry for further use