aboutsummaryrefslogtreecommitdiff
path: root/app/utils.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-24 18:15:09 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-24 18:15:12 +0000
commit6e938ba74c089428723ae05f305c2d23a636ca3f (patch)
tree0e699087d27cb0070eb08012e2e92d7c7b1584c9 /app/utils.py
parent53a63367dc7defc34616fc784cd19086d60ad54f (diff)
downloadcheatdb-6e938ba74c089428723ae05f305c2d23a636ca3f.tar.xz
Split up users blueprint
Diffstat (limited to 'app/utils.py')
-rw-r--r--app/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/utils.py b/app/utils.py
index 9ce7836..f44622d 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -48,7 +48,7 @@ def randomString(n):
def doFileUpload(file, fileType, fileTypeDesc):
if not file or file is None or file.filename == "":
- flash("No selected file", "error")
+ flash("No selected file", "danger")
return None, None
assert os.path.isdir(app.config["UPLOAD_DIR"]), "UPLOAD_DIR must exist"
@@ -114,7 +114,7 @@ def loginUser(user):
return False
if user.rank == UserRank.BANNED:
- flash("You have been banned.", "error")
+ flash("You have been banned.", "danger")
return False
user.active = True
@@ -125,7 +125,7 @@ def loginUser(user):
# Check if user account has been disabled
if not _call_or_get(user.is_active):
- flash("Your account has not been enabled.", "error")
+ flash("Your account has not been enabled.", "danger")
return False
# Use Flask-Login to sign in user