diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-14 01:35:18 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-14 01:35:18 +0100 |
commit | c26c6ab220c18f3a2a1ecdfdeaeaab2ee723adf8 (patch) | |
tree | 18071859f59c8ef75179aae1ed504eaca229cf03 | |
parent | e2341aafd9dce39bac453be371c834ddee0fb747 (diff) | |
download | cheatdb-c26c6ab220c18f3a2a1ecdfdeaeaab2ee723adf8.tar.xz |
Fix crash on no email provided to edit user
-rw-r--r-- | app/views/users.py | 2 |
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() |