Skip to content

Commit

Permalink
bank_password error #454
Browse files Browse the repository at this point in the history
  • Loading branch information
eljeffeg committed Sep 20, 2021
1 parent 12ff2e4 commit 1cec27e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion handlers/PublicHandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def add_user(self, claims, team_code):
secrets.choice(string.ascii_letters + string.digits + string.punctuation)
for i in range(30)
)
user.bank_password = False
user.bank_password = ""
user.name = claims["name"]
user.email = claims["email"]
user.theme = options.default_theme
Expand Down
2 changes: 1 addition & 1 deletion models/User.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def bank_password(self):

@bank_password.setter
def bank_password(self, value):
if not options.banking:
if not options.banking or not value:
# random password
_password = "".join(
random.SystemRandom().choice(string.ascii_uppercase + string.digits)
Expand Down
2 changes: 1 addition & 1 deletion setup/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = "3.9.2"
__version__ = "3.9.3"

0 comments on commit 1cec27e

Please sign in to comment.