Code sync from ship-simu code (all class config entries must end with _class!)
[mailer.git] / inc / classes / main / actions / post_registration / class_LoginAfterRegistrationAction.php
index aae33eb5c2c8f0d67d7c97ba8b20bfc0218aa754..c5f1e8a02ff4480fbece3a9479ef4f065d73acfa 100644 (file)
@@ -60,16 +60,16 @@ class LoginAfterRegistrationAction extends BaseAction implements Commandable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get a login class from factory
-               $loginInstance = ObjectFactory::createObjectByConfiguredName('login_user');
+               $loginInstance = ObjectFactory::createObjectByConfiguredName('user_login_class');
 
                // Login the user by the request instance
-               $loginInstance->doLogin($requestInstance);
+               $loginInstance->doLogin($requestInstance, $responseInstance);
 
                // Was the login fine? Then redirect here
                if ($loginInstance->ifLoginWasSuccessfull()) {
                        // Try to redirect here
                        try {
-                               $responseInstance->redirectConfiguredUrl('app_login');
+                               $responseInstance->redirectToConfiguredUrl('app_login_url');
                        } catch (FrameworkException $e) {
                                // Something went wrong here!
                                $responseInstance->addFatalMessage($e->getMessage());