def auth(self, token, id): passwd = token.nextToken() if InsertMobileId.isNewId(id): replyMsg = "로그인 실패\nID 미등록" else: if InsertMobileId.isPasswdCorrect(self.db, id, passwd): replyMsg = self.applyModel(token, id) else: replyMsg = "로그인 실패\n문자열 오류" return replyMsg
def newId(self, id): if InsertMobileId.isNewId(self.db, id): replyMsg = "ID 사용 가능" else: replyMsg = "사용 중인 ID" return replyMsg