Remove optional banner from set password page

This commit is contained in:
rubenwardy
2023-10-11 22:32:32 +01:00
parent 0b7febae5d
commit 4fc54f12bc
3 changed files with 2 additions and 14 deletions

View File

@@ -42,7 +42,7 @@ def post_login(user: User, next_url):
return redirect(next_url)
if not current_user.password:
return redirect(url_for("users.set_password", optional=True))
return redirect(url_for("users.set_password"))
notif_count = len(user.notifications)
if notif_count > 0: