Let authenticators provide username and password separately

This commit is contained in:
Joscha
2021-05-15 18:24:03 +02:00
parent d63494908d
commit 8c32da7f19
4 changed files with 32 additions and 22 deletions

View File

@ -177,7 +177,7 @@ class KitShibbolethLogin:
if not self._tfa_auth:
raise RuntimeError("No 'tfa_auth' present but you use two-factor authentication!")
_, tfa_token = await self._tfa_auth.credentials()
tfa_token = await self._tfa_auth.password()
# Searching the form here so that this fails before asking for
# credentials rather than after asking.