FIx in usermodel
This commit is contained in:
parent
fc70da5e20
commit
78bf9d317a
1 changed files with 13 additions and 10 deletions
|
|
@ -16,6 +16,7 @@ class UserModel(WebModel):
|
||||||
self.username_field='username'
|
self.username_field='username'
|
||||||
self.yes_repeat_password=True
|
self.yes_repeat_password=True
|
||||||
self.check_user=True
|
self.check_user=True
|
||||||
|
self.check_email=True
|
||||||
|
|
||||||
def create_forms(self, arr_fields=[]):
|
def create_forms(self, arr_fields=[]):
|
||||||
|
|
||||||
|
|
@ -124,6 +125,8 @@ class UserModel(WebModel):
|
||||||
error+=1
|
error+=1
|
||||||
|
|
||||||
|
|
||||||
|
if self.check_email:
|
||||||
|
|
||||||
if self.email_field in dict_values:
|
if self.email_field in dict_values:
|
||||||
|
|
||||||
self.conditions=['WHERE email=%s AND '+self.name_field_id+'!=%s', [dict_values[self.email_field], get_id]]
|
self.conditions=['WHERE email=%s AND '+self.name_field_id+'!=%s', [dict_values[self.email_field], get_id]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue