Implement change password

This commit is contained in:
rubenwardy
2020-12-04 23:07:19 +00:00
parent bfcdd642fd
commit 43aab057c8
15 changed files with 88 additions and 53 deletions

View File

@@ -93,7 +93,7 @@ def profile(username):
if user.checkPerm(current_user, Permission.CHANGE_EMAIL):
newEmail = form["email"].data
if newEmail != user.email and newEmail.strip() != "":
if newEmail and newEmail != user.email and newEmail.strip() != "":
token = randomString(32)
msg = "Changed email of {}".format(user.display_name)