fix home links in LoginController

This commit is contained in:
Bence Pőcze 2023-04-16 14:30:16 +02:00
parent b066ef22b4
commit 4f4cc43e90
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -37,7 +37,7 @@ class LoginController
$this->userPasswordResetterRepository = new UserPasswordResetterRepository();
$this->redirectUrl = $this->request->session()->has('redirect_after_login') ?
$this->request->session()->get('redirect_after_login') :
\Container::$routeCollection->getRoute('index')->generateLink();
\Container::$routeCollection->getRoute('home')->generateLink();
}
public function getLoginForm()
@ -174,7 +174,7 @@ class LoginController
{
$this->request->setUser(null);
return new Redirect(\Container::$routeCollection->getRoute('index')->generateLink(), IRedirect::TEMPORARY);
return new Redirect(\Container::$routeCollection->getRoute('home')->generateLink(), IRedirect::TEMPORARY);
}
public function requestPasswordReset(): IContent