Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
trinkey committed Oct 13, 2024
1 parent e5419f1 commit bb796cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions smiggins/backend/api/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion smiggins/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bb796cb

Please sign in to comment.