We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a99bc7a commit 0136d12Copy full SHA for 0136d12
2 files changed
server/mergin/auth/models.py
@@ -52,7 +52,7 @@ def __repr__(self):
52
53
def check_password(self, password):
54
# users created through SSO
55
- if not self.passwd:
+ if self.passwd is None:
56
return
57
if isinstance(password, str):
58
password = password.encode("utf-8")
server/mergin/tests/test_auth.py
@@ -950,9 +950,7 @@ def test_login_without_password(client):
950
login_as_admin(client)
951
username = "sso_user"
952
user = add_user(username=username, password="")
953
- user.passwd = None
954
- db.session.commit()
955
- assert user.username == username
+ assert user.passwd is None
956
for pwd in ["Il0vemergin", ""]:
957
resp = client.post(
958
url_for("/.mergin_auth_controller_login"),
0 commit comments