mirror of
https://github.com/myvesta/vesta
synced 2025-07-30 11:39:44 -07:00
If I use nginx to assign 127.0.0.1:8083 with one of named VirtualHost - I have error when login by user (Browser redirect me to self domain name with 8083 port, which is already closed). Also this fix doesn't break anything on default use.
8 lines
139 B
PHP
8 lines
139 B
PHP
<?php
|
|
session_start();
|
|
if (isset($_SESSION['user'])) {
|
|
header("Location: /list/user/");
|
|
} else {
|
|
header("Location: /login/");
|
|
}
|
|
?>
|