]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/login/class_ShipSimuUserLogin.php
Now we really have ship-simu specific user/member classes
[shipsimu.git] / application / ship-simu / main / login / class_ShipSimuUserLogin.php
index 7ca65d2da16f8c757511972b76eaf339f29f9565..eced73d98f53ec54eb18aed803084eb5ec4fff30 100644 (file)
@@ -84,8 +84,11 @@ class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser {
 
                // Is there an instance?
                if (is_null($userInstance)) {
+                       // Get member class
+                       $userClass = $this->getConfigInstance()->readConfig('user_class');
+
                        // Get a user instance
-                       $userInstance = Member::createMemberByRequest($requestInstance);
+                       $userInstance = call_user_func_array(array($userClass, 'createMemberByRequest'), array($requestInstance));
 
                        // Remember this new instance in registry
                        Registry::getRegistry()->addInstance($userInstance);