From 980321b73f51474903d95004f2fd247e159e1436 Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Sun, 15 Jun 2014 01:08:26 +0200 Subject: [PATCH] Fixed login redirect --- htdocs/login.php | 19 +------------------ htdocs/process_login.php | 4 ++++ 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/htdocs/login.php b/htdocs/login.php index 27756d4..2e6bc2b 100644 --- a/htdocs/login.php +++ b/htdocs/login.php @@ -2,21 +2,4 @@ define("SITE_ROOT", realpath(dirname(__file__))); require_once SITE_ROOT . "/lib/init.php"; - -$google_gateway = Layout::getLoginGateway(); -Layout::header(); -?> - -

Please use your Google Account to login.

- -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()) {