Skip to content

Commit a0849f8

Browse files
committed
black .
1 parent b66a3b6 commit a0849f8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

server/mergin/auth/models.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ def check_password(self, password):
5858
def assign_password(self, password):
5959
if isinstance(password, str):
6060
password = password.encode("utf-8")
61-
self.passwd = bcrypt.hashpw(password, bcrypt.gensalt()).decode("utf-8") if password else None
61+
self.passwd = (
62+
bcrypt.hashpw(password, bcrypt.gensalt()).decode("utf-8")
63+
if password
64+
else None
65+
)
6266

6367
@property
6468
def is_authenticated(self):

0 commit comments

Comments
 (0)