We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b66a3b6 commit a0849f8Copy full SHA for a0849f8
1 file changed
server/mergin/auth/models.py
@@ -58,7 +58,11 @@ def check_password(self, password):
58
def assign_password(self, password):
59
if isinstance(password, str):
60
password = password.encode("utf-8")
61
- self.passwd = bcrypt.hashpw(password, bcrypt.gensalt()).decode("utf-8") if password else None
+ self.passwd = (
62
+ bcrypt.hashpw(password, bcrypt.gensalt()).decode("utf-8")
63
+ if password
64
+ else None
65
+ )
66
67
@property
68
def is_authenticated(self):
0 commit comments