mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-09-11 13:22:12 +00:00
redirect home when user already logged
This commit is contained in:
parent
56944174ec
commit
37bc1489fb
@ -9,6 +9,11 @@ $errorUserPrivateKey = false;
|
|||||||
|
|
||||||
$metaTitle = _('Login | Twisterarmy Cloud');
|
$metaTitle = _('Login | Twisterarmy Cloud');
|
||||||
|
|
||||||
|
// Redirect home when user already logged
|
||||||
|
if (isset($_SESSION['username'])) {
|
||||||
|
header('Location: ' . PROJECT_HOST, true, 302);
|
||||||
|
}
|
||||||
|
|
||||||
// Process form request
|
// Process form request
|
||||||
if (isset($_POST) && $_POST) {
|
if (isset($_POST) && $_POST) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user