fixed no-email edit in profile

This commit is contained in:
mdipierro
2018-04-02 23:53:05 -05:00
parent 2237076a5a
commit cec14c741a
4 changed files with 7 additions and 3 deletions
+2
View File
@@ -3762,6 +3762,7 @@ class Auth(AuthAPI):
client_side=self.settings.client_side)
passfield = self.settings.password_field
table_user[passfield].writable = False
table_user['email'].writable = False
request = current.request
session = current.session
if next is DEFAULT:
@@ -3772,6 +3773,7 @@ class Auth(AuthAPI):
onaccept = self.settings.profile_onaccept
if log is DEFAULT:
log = self.messages['profile_log']
form = SQLFORM(
table_user,
self.user.id,