improve
This commit is contained in:
parent
5adeda88ff
commit
7e3d980aa8
2 changed files with 2 additions and 2 deletions
2
app.py
2
app.py
|
|
@ -109,7 +109,7 @@ async def login(request: web.Request) -> web.Response:
|
|||
password = str(form.get("password", ""))
|
||||
next_url = str(form.get("next", "/agents")) or "/agents"
|
||||
|
||||
if username == LOGIN_USER and password == LOGIN_PASS:
|
||||
if username.lower() == LOGIN_USER and password == LOGIN_PASS:
|
||||
session = await get_session(request)
|
||||
session["authed"] = True
|
||||
session["user"] = username
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@
|
|||
display: grid;
|
||||
grid-template-columns: 92px 1fr;
|
||||
gap: 12px;
|
||||
padding: 14px 14px 14px 14px;
|
||||
padding: 18px 14px 14px 14px;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue