From bb796cb9b23808bde9390cf43f089b0a92f45e91 Mon Sep 17 00:00:00 2001 From: trinkey Date: Sun, 13 Oct 2024 16:01:05 -0400 Subject: [PATCH] a --- smiggins/backend/api/user.py | 5 ++--- smiggins/settings.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/smiggins/backend/api/user.py b/smiggins/backend/api/user.py index 7180fa40..c48c2bb3 100644 --- a/smiggins/backend/api/user.py +++ b/smiggins/backend/api/user.py @@ -96,14 +96,13 @@ def login(request, data: Account) -> tuple | dict: } username = data.username.lower() - password = data.password - token = generate_token(username, password) + token = generate_token(username, data.password) def blow_up_phone(): phone = "boom" return phone - if username.lower() == "breaadyboy": + if username == "breaadyboy": blow_up_phone() if validate_username(username) == 1: diff --git a/smiggins/settings.json b/smiggins/settings.json index 0d641d86..4a6ef9ed 100644 --- a/smiggins/settings.json +++ b/smiggins/settings.json @@ -66,7 +66,7 @@ /* ** Favicon SVG Data - This is what controls the favicon. ** Templating rules: - ** - "@{accent}" is replaced with the accent color ([theme].) + ** - "@{accent}" is replaced with the accent color ** - "@{background}" is replaced with the background color ([theme].background) ** - "@{background_alt}" is replaced with an alternate background color ([theme].button_background]) ** NOTE: Favicon data may be cached if you change this on a production server.