aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users.py b/app/views/users.py
index a4fb90b..247f6d0 100644
--- a/app/views/users.py
+++ b/app/views/users.py
@@ -52,7 +52,7 @@ def user_profile_page(username):
if user.checkPerm(current_user, Permission.CHANGE_EMAIL):
newEmail = form["email"].data
- if newEmail != user.email:
+ if newEmail != user.email and newEmail.strip() != "":
token = randomString(32)
ver = UserEmailVerification()