]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/login/class_ShipSimuUserLogin.php
Login and auth classes added. WARNING: All class config entries must end with _class!
[shipsimu.git] / application / ship-simu / main / login / class_ShipSimuUserLogin.php
index 59ddcdcb6b9f8619191dbabb3aeb1732281d0aaa..75bc8fa1384b8b8dc2edbd9c9860b362cc28b858 100644 (file)
@@ -63,7 +63,7 @@ class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser {
         * @param       $requestInstance        An instance of a Requestable class
         * @param       $responseInstance       An instance of a Responseable class
         * @return      void
-        * @throws      UserLoginMethodException        If wether username nor email login
+        * @throws      UserAuthMethodException If wether username nor email login
         *                                                                              was detected
         * @throws      MissingMethodException          If a method was not found in the
         *                                                                              User class
@@ -89,7 +89,7 @@ class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser {
                // Is a method detected?
                if (is_null($method)) {
                        // Then abort here
-                       throw new UserLoginMethodException($this, self::EXCEPTION_MISSING_METHOD);
+                       throw new UserAuthMethodException($this, self::EXCEPTION_MISSING_METHOD);
                } elseif (!method_exists($this->getConfigInstance()->readConfig('user_class'), $method)) {
                        // The method is invalid!
                        throw new MissingMethodException(array($this, $method), self::EXCEPTION_MISSING_METHOD);
@@ -116,7 +116,7 @@ class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser {
                // Now do the real login. This can be cookie- or session-based login
                // which depends on the admins setting then on the user's taste.
                // 1) Get a login helper instance
-               $helperInstance = ObjectFactory::createObjectByConfiguredName('login_helper', array($requestInstance));
+               $helperInstance = ObjectFactory::createObjectByConfiguredName('login_helper_class', array($requestInstance));
 
                // 2) Execute the login. This will now login...
                $helperInstance->executeLogin($responseInstance);