示例#1
0
 def confirm(cls, user_id, cid):
     key = OAUTH_CONFIRM % (user_id, cid)
     if mc.get(key):
         mc.delete(key)
         return True
示例#2
0
文件: oauth.py 项目: 4T-Shirt/code
 def confirm(cls, user_id, cid):
     key = OAUTH_CONFIRM % (user_id, cid)
     if mc.get(key):
         mc.delete(key)
         return True
示例#3
0
 def check(cls, apikey, code):
     key = cls.__mc_key(apikey, code)
     user_id = mc.get(key)
     if user_id:
         mc.delete(key)
     return user_id
示例#4
0
文件: oauth.py 项目: 4T-Shirt/code
 def check(cls, apikey, code):
     key = cls.__mc_key(apikey, code)
     user_id = mc.get(key)
     if user_id:
         mc.delete(key)
     return user_id