Beispiel #1
0
 def check_user_info(self, email, nick, password, mobilenumber):
     try:
         validators.vemail(email)
         validators.vnick(nick)
         validators.vpassword(password)
     except Exception, e:
         return 99900, smart_unicode(e)
Beispiel #2
0
 def check_user_info(self, email, nick, password, mobilenumber):
     try:
         validators.vemail(email)
         validators.vnick(nick)
         validators.vpassword(password)
     except Exception, e:
         return 99900, smart_unicode(e)
Beispiel #3
0
    def change_profile(self, user, nick, gender, birthday, des=None, state=None):
        '''
        @note: 资料修改
        '''
        user_id = user.id
        if not (user_id and nick and gender and birthday):
            return 99800, dict_err.get(99800)

        try:
            validators.vnick(nick)
        except Exception, e:
            return 99900, smart_unicode(e)