aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fietsboek/models/user.py1
-rw-r--r--tests/playwright/conftest.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/fietsboek/models/user.py b/fietsboek/models/user.py
index 7d327b7..36cdbc9 100644
--- a/fietsboek/models/user.py
+++ b/fietsboek/models/user.py
@@ -240,6 +240,7 @@ class User(Base):
user = session.execute(query).scalar_one()
except NoResultFound:
return None
+ # pylint: disable=protected-access
if user._fingerprint() != fingerprint:
return None
return user
diff --git a/tests/playwright/conftest.py b/tests/playwright/conftest.py
index b17d457..aefe1ee 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", "email"])
+ self.dbaccess.refresh(user, ["id", "email", "password", "session_secret"])
self.dbaccess.expunge(user)
self._johnny = user
return user