Making login screen a bit clearer

This commit is contained in:
Ian Roddis committed 2026-07-16 22:10:36 -03:00
1 parent 1180694738
commit 0150c19b75
3 files changed
+83 -26

No files matched your search

+2 -3
View File
@@ -50,12 +50,11 @@ async def login_submit(
):
user = await user_crud.authenticate(db, email, password)
if user is None:
# Re-render the form with an error (HTMX swaps the form partial).
return templates.TemplateResponse(
request,
"login.html",
{
"error": "Incorrect email or password",
"local_error": "Incorrect email or password",
"email": email,
"ldap_enabled": settings.ldap_enabled,
},
@@ -82,7 +81,7 @@ async def login_ldap_submit(
request,
"login.html",
{
"error": "LDAP sign-in failed",
"ldap_error": "Incorrect username or password",
"username": username,
"ldap_enabled": True,
},