replace hardcoded links to generated ones #20

Merged
bence merged 2 commits from feature/replace-hardcoded-links into master 2023-04-16 14:44:00 +02:00
Showing only changes of commit 4f4cc43e90 - Show all commits

View File

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