Split up users blueprint

This commit is contained in:
rubenwardy
2020-01-24 18:15:09 +00:00
parent 53a63367dc
commit 6e938ba74c
12 changed files with 139 additions and 115 deletions

View File

@@ -87,7 +87,7 @@ def flatpage(path):
def check_for_ban():
if current_user.is_authenticated:
if current_user.rank == models.UserRank.BANNED:
flash("You have been banned.", "error")
flash("You have been banned.", "danger")
logout_user()
return redirect(url_for('user.login'))
elif current_user.rank == models.UserRank.NOT_JOINED: