diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-08-09 21:01:06 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-08-09 21:01:06 +0200 |
commit | 20ddfb7a1d39b55a6d8044a083d2d151bddec78d (patch) | |
tree | 9f88b94aa75633405463ae768cb06074f8c1e82c /tests/playwright | |
parent | 6261e0da3b2c4ac9596ac70b74c3a32552bcb180 (diff) | |
download | fietsboek-20ddfb7a1d39b55a6d8044a083d2d151bddec78d.tar.gz fietsboek-20ddfb7a1d39b55a6d8044a083d2d151bddec78d.tar.bz2 fietsboek-20ddfb7a1d39b55a6d8044a083d2d151bddec78d.zip |
include email in user fingerprint
Diffstat (limited to 'tests/playwright')
-rw-r--r-- | tests/playwright/conftest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/playwright/conftest.py b/tests/playwright/conftest.py index f57aca7..b17d457 100644 --- a/tests/playwright/conftest.py +++ b/tests/playwright/conftest.py @@ -81,7 +81,7 @@ class Helper: user.set_password("password") self.dbaccess.add(user) self.dbaccess.commit() - self.dbaccess.refresh(user, ["id"]) + self.dbaccess.refresh(user, ["id", "email"]) self.dbaccess.expunge(user) self._johnny = user return user @@ -93,7 +93,7 @@ class Helper: config = Config.construct(session_key=self.app_settings["session_key"]) secret = config.derive_secret("auth-cookie") helper = AuthTktCookieHelper(secret) - headers = helper.remember(DummyRequest(), str(user.id)) + headers = helper.remember(DummyRequest(), user.authenticated_user_id()) for _, header_val in headers: cookie = header_val.split(";")[0] name, value = cookie.split("=", 1) |