*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get a login class from factory
- $loginInstance = ObjectFactory::createObjectByConfiguredName('login_user');
+ $loginInstance = ObjectFactory::createObjectByConfiguredName('user_login_class');
// Login the user by the request instance
- $loginInstance->doLogin($requestInstance);
+ $loginInstance->doLogin($requestInstance, $responseInstance);
// Was the login fine? Then redirect here
if ($loginInstance->ifLoginWasSuccessfull()) {
// Try to redirect here
try {
- $responseInstance->redirectConfiguredUrl('app_login');
+ $responseInstance->redirectToConfiguredUrl('app_login_url');
} catch (FrameworkException $e) {
// Something went wrong here!
$responseInstance->addFatalMessage($e->getMessage());