Fixed login redirect

This commit is contained in:
Latif Khalifa
2014-06-15 01:08:26 +02:00
committed by Singularity Viewer
parent 25939cc553
commit 980321b73f
2 changed files with 5 additions and 18 deletions

View File

@@ -20,6 +20,10 @@ if (!$user)
$user->email = $user_email;
$user->is_admin = 0;
$user->is_allowed = 0;
if ($user->email == "ek@krug.dk" || $user->email == "shyotl@gmail.com")
{
$user->is_allowed = 1;
}
$user->login = $user_identity;
if (!$user->save())
{