Commit eddcf43b authored by Roman Ondráček's avatar Roman Ondráček

Core: add another redirect if the user is signed in (fix #226)

Signed-off-by: Roman Ondráček's avatarRoman Ondráček <ondracek.roman@centrum.cz>
parent 2290079c
......@@ -77,6 +77,15 @@ class SignPresenter extends BasePresenter {
$this->userManager = $userManager;
}
/**
* Renders sign in page
*/
public function renderIn(): void {
if ($this->getUser()->isLoggedIn()) {
$this->redirect('Homepage:');
}
}
/**
* Creates the sign in form
* @return Form Sign in form
......
......@@ -27,7 +27,6 @@
<meta name='author' content='IQRF Tech.r.o.'>
<title>{ifset title}{include title|stripHtml|trim} | {/ifset}{_core.title}</title>
<link n:nonce rel='stylesheet' href='/dist/app.bundle.css'>
<link n:nonce rel='stylesheet' href='/dist/highlight.bundle.css'>
<link rel='apple-touch-icon' sizes='180x180' href='/img/favicon/apple-touch-icon.png'>
<link rel='icon' type='image/png' sizes='32x32' href='/img/favicon/favicon-32x32.png'>
<link rel='icon' type='image/png' sizes='16x16' href='/img/favicon/favicon-16x16.png'>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment