From 20ddfb7a1d39b55a6d8044a083d2d151bddec78d Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 9 Aug 2023 21:01:06 +0200 Subject: include email in user fingerprint --- tests/playwright/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/playwright/conftest.py') 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) -- cgit v1.2.3