Skip to content

Commit 9937bf5

Browse files
committed
Reduced pw strength test to just 12+ chars
1 parent 676999a commit 9937bf5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/server/api/user_api.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ def has_alpha(test_string):
5151
return False
5252

5353
if (len(password) > 11
54-
and has_alpha(password)
55-
and has_digit(password) ):
54+
# and has_alpha(password)
55+
# and has_digit(password)
56+
):
5657
return True
5758

5859
else:
@@ -344,7 +345,7 @@ def check_username():
344345
return jsonify(user_exists)
345346

346347
@user_api.route("/api/admin/user/update", methods=["POST"])
347-
#@jwt_ops.admin_required #TODO: remove comment
348+
@jwt_ops.admin_required
348349
def user_update():
349350
"""Update existing user record
350351
"""
@@ -389,7 +390,7 @@ def user_update():
389390
Session = sessionmaker(engine)
390391

391392
session = Session()
392-
# #TODO: Figure out context manager doesn't work or do try/finally
393+
# #TODO: Figure out why context manager doesn't work or do try/finally
393394

394395
PU = Table("pdp_users", metadata, autoload=True, autoload_with=engine)
395396
# pr = Table("pdp_user_roles", metadata, autoload=True, autoload_with=engine)

0 commit comments

Comments
 (0)