Added new factory (unfinished) + some fixes.
[core.git] / inc / classes / main / actions / post_registration / class_LoginAfterRegistrationAction.php
index bd1e230dc3943b8b0f7507a1c5b743807eec27a1..f41843c8fd14a68feb4c87d033d17e9899411837 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A post registration action to login after the registration is done
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -54,7 +54,8 @@ class LoginAfterRegistrationAction extends BaseAction implements PerformableActi
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get a login class from factory
-               $loginInstance = ObjectFactory::createObjectByConfiguredName('user_login_class');
+               $loginInstance = LoginFactory::createLoginObjectByRequest($requestInstance);
+               die('<pre>'.print_r($loginInstance, TRUE).'</pre>');
 
                // Login the user by the request instance
                $loginInstance->doLogin($requestInstance, $responseInstance);