X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fshipsimu%2Fmain%2Flogin%2Fclass_ShipSimuUserLogin.php;fp=application%2Fshipsimu%2Fmain%2Flogin%2Fclass_ShipSimuUserLogin.php;h=0b3cf7c2424b97642ca313f6d08b6179957bdbfd;hb=daa5a6fc9d393ddde4e9a436a2030f3b9c48b6b5;hp=cf43ef00b50e9e7a2b1083078eacff409cc47659;hpb=6358db07175abd7c3be46de5fb0d8f36d9893cfe;p=shipsimu.git diff --git a/application/shipsimu/main/login/class_ShipSimuUserLogin.php b/application/shipsimu/main/login/class_ShipSimuUserLogin.php index cf43ef0..0b3cf7c 100644 --- a/application/shipsimu/main/login/class_ShipSimuUserLogin.php +++ b/application/shipsimu/main/login/class_ShipSimuUserLogin.php @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser { +class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser, Registerable { /** * The hashed password */ @@ -65,15 +65,8 @@ class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser { * @todo user account. */ public function doLogin (Requestable $requestInstance, Responseable $responseInstance) { - // By default no method is selected - $method = null; - $data = ""; - - // Get member class - $userClass = $this->getConfigInstance()->getConfigEntry('user_class'); - // Get a user instance - $userInstance = call_user_func_array(array($userClass, 'createMemberByRequest'), array($requestInstance)); + $userInstance = LoginFactory::createLoginObjectByRequest($requestInstance); // Remember this new instance in registry Registry::getRegistry()->addInstance('user', $userInstance);