Commit b391e354ce6b38909692b884540074c73aa2f92e
Committed by
Sergio Oliveira
1 parent
c0605b02
Exists in
master
and in
39 other branches
Validated if email is changed through other means
Email must not be changed through any means in the Register process Signed-off-by: Carlos Oliveira <carlospecter@gmail.com> Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
colab/accounts/views.py
... | ... | @@ -152,7 +152,8 @@ def signup(request): |
152 | 152 | |
153 | 153 | user = user_form.save(commit=False) |
154 | 154 | user.needs_update = False |
155 | - user.save() | |
155 | + update_fields = ['first_name', 'last_name', 'username', 'needs_update'] | |
156 | + user.save(update_fields=update_fields) | |
156 | 157 | |
157 | 158 | # Check if the user's email have been used previously |
158 | 159 | # in the mainling lists to link the user to old messages | ... | ... |