Browse Source

redirect home when user already logged

main
ghost 3 years ago
parent
commit
37bc1489fb
  1. 5
      src/application/controller/login.php

5
src/application/controller/login.php

@ -9,6 +9,11 @@ $errorUserPrivateKey = false; @@ -9,6 +9,11 @@ $errorUserPrivateKey = false;
$metaTitle = _('Login | Twisterarmy Cloud');
// Redirect home when user already logged
if (isset($_SESSION['username'])) {
header('Location: ' . PROJECT_HOST, true, 302);
}
// Process form request
if (isset($_POST) && $_POST) {

Loading…
Cancel
Save