X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fcommands%2Fweb%2Fclass_WebShipsimuUserLoginCommand.php;h=add9a42eb8c60778c69b819b207048a275d36df8;hp=1a0a99f28540de11f6ac0c106dc0aec054f0bc7f;hb=50d2890511eb23971eb4ee1e392748a42b066def;hpb=2b7c3e43b2fe0f3c5ae0455d13fa7743b638049f diff --git a/application/ship-simu/main/commands/web/class_WebShipsimuUserLoginCommand.php b/application/ship-simu/main/commands/web/class_WebShipsimuUserLoginCommand.php index 1a0a99f..add9a42 100644 --- a/application/ship-simu/main/commands/web/class_WebShipsimuUserLoginCommand.php +++ b/application/ship-simu/main/commands/web/class_WebShipsimuUserLoginCommand.php @@ -102,12 +102,12 @@ class WebShipsimuUserLoginCommand extends BaseCommand implements Commandable { */ public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) { // Which login type do we have? - switch ($this->getConfigInstance()->readConfig('login_type')) { - case "username": // Login via username + switch ($this->getConfigInstance()->getConfigEntry('login_type')) { + case 'username': // Login via username $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_verifier_filter')); break; - case "email": // Login via email + case 'email': // Login via email $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('email_verifier_filter')); break;