Esempio n. 1
0
 public static function authorize_admin($username, $password)
 {
     if ($user = AdminUser::find_one($username, $password)) {
         self::$admin_user = $user;
         $_SESSION['admin_user_id'] = $user['id'];
         print_r($_SESSION);
         return FALSE;
     } else {
         return 'Incorrect email or password.';
     }
 }