login: redirect to main page if user is already logged in
This commit is contained in:
parent
9eda83417b
commit
a5ebd1f974
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,14 @@
|
|||
$login = $_POST["login"];
|
||||
$password = $_POST["password"];
|
||||
|
||||
if ($_COOKIE["ttrss_sid"]) {
|
||||
require_once "sessions.php";
|
||||
if ($_SESSION["uid"]) {
|
||||
initialize_user_prefs($link, $_SESSION["uid"]);
|
||||
header("Location: $redirect_base/tt-rss.php");
|
||||
}
|
||||
}
|
||||
|
||||
if ($login && $password) {
|
||||
|
||||
if ($_POST["remember_me"]) {
|
||||
|
|
Loading…
Reference in a new issue