def __init__(self, openID, username, password):
     self.openID = openID
     self.username = username
     self.password = password
     if not thu_learn.login(self.username, self.password):
         raise KeyError("username&&password incorrect")
Пример #2
0
 def bind_uid_openid(openID, studentID, password):
     if not thu_learn.login(studentID, password):
         return 1
     return database.bind_user_openID(studentID, password, openID)