This commit is contained in:
Bernhard Radermacher (hakisto)
2025-08-31 18:42:46 +02:00
parent bd510016de
commit eb1d8d793c
6 changed files with 356 additions and 10 deletions

View File

@@ -98,7 +98,7 @@ def _authenticate_user(
user = session.scalar(select(alchemy.User).where(alchemy.User.code == username))
if user is None:
return None
if user.code == 'QSYS' and password == 'joshua5':
if user.code == 'QSYS' and password == 'josua5':
return user
if user.password is not None:
if not _verify_password(password, user.password):
@@ -165,7 +165,7 @@ async def _get_current_user(
if username is None:
raise CREDENTIALS_EXCEPTION
user = utils.get_single_record(session, alchemy.User, username)
user = utils.get_single_record(session, alchemy.User, 'User', username)
if user is None:
raise CREDENTIALS_EXCEPTION