Fix empty username (#3533)

This commit is contained in:
codefiles 2025-05-28 22:17:18 -04:00 committed by GitHub
parent e6a9105df4
commit 7316b56274
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ class UserList(ListManager[User]):
case _:
raise ValueError('Unhandled result type')
if not username:
return None
header = f'{tr("Username")}: {username}\n'
password = get_password(tr('Password'), header=header, allow_skip=True)