module CrystalGauntlet::Accounts
Extended Modules
Defined in:
lib/accounts.crConstant Summary
-
AUTH_CACHE =
Hash(Tuple(String | Nil, String | Nil, String | Nil), Tuple(Int32, Int32) | Tuple(Nil, Nil)).new
-
todo: clean this periodically
-
SESSIONS =
Hash(Tuple(String | Nil, String | Nil), Tuple(Int32, Int32, Int64)).new
Instance Method Summary
- #are_friends(account_id_1 : Int32, account_id_2 : Int32)
-
#auth(params : URI::Params) : Tuple(Int32, Int32) | Tuple(Nil, Nil)
returns userid, accountid
- #auth_old(req : HTTP::Request, params : URI::Params) : Tuple(Int32, Int32) | Tuple(Nil, Nil)
-
#get_account_id_from_params(params : URI::Params) : Int32 | Nil
DOESN'T VERIFY PASSWORD
-
#get_ext_id_from_params(params : URI::Params) : Int32 | Nil
DOESN'T VERIFY PASSWORD
- #get_user_id(ext_id : Int32) : Int32
- #is_blocked_by(account_id : Int32, by : Int32)
- #new_session(req : HTTP::Request, username : String, password : String) : Bool
- #verify_gjp(account_id : Int32, gjp : String) : Bool
Instance Method Detail
def auth_old(req : HTTP::Request, params : URI::Params) : Tuple(Int32, Int32) | Tuple(Nil, Nil)
#