public static function isFormTokenValid($token) { if (Sessions::check('form_token')) { return false; } if (Sessions::get('form_token') == $token) { return true; } return false; }
public static function authLogin() { if (Sessions::check('user_id')) { self::redirectIndex(); } }