login: redirect to main page if user is already logged in
This commit is contained in:
parent
9eda83417b
commit
a5ebd1f974
|
@ -19,6 +19,14 @@
|
||||||
$login = $_POST["login"];
|
$login = $_POST["login"];
|
||||||
$password = $_POST["password"];
|
$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 ($login && $password) {
|
||||||
|
|
||||||
if ($_POST["remember_me"]) {
|
if ($_POST["remember_me"]) {
|
||||||
|
|
Loading…
Reference in New Issue