/** * revalidate the user * * @return array */ public function revalidate() { $user = vkNgine_Auth::getIdentity(); $modelPublicUsers = new Public_Model_Users(); $dbUser = $modelPublicUsers->fetchWithEmail($user['email']); return $dbUser; }
/** * revalidates the user */ public static function revalidate() { $user = vkNgine_Auth::getIdentity(); // revalidate the user $modelAdminUsers = new Admin_Model_Users(); $dbUser = $modelAdminUsers->fetchWithEmail($user['email']); return $dbUser; }
/** * revalidates the given user * * @return bool */ public static function revalidate() { $user = vkNgine_Auth::getIdentity(); if ($user['type'] == 'STANDARD') { return vkNgine_Public_Auth::revalidate(); } else { if ($user['type'] == 'ADMIN') { return vkNgine_Admin_Auth::revalidate(); } else { return false; } } }