File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,9 @@ def has_alpha(test_string):
51
51
return False
52
52
53
53
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
+ ):
56
57
return True
57
58
58
59
else :
@@ -344,7 +345,7 @@ def check_username():
344
345
return jsonify (user_exists )
345
346
346
347
@user_api .route ("/api/admin/user/update" , methods = ["POST" ])
347
- # @jwt_ops.admin_required #TODO: remove comment
348
+ @jwt_ops .admin_required
348
349
def user_update ():
349
350
"""Update existing user record
350
351
"""
@@ -389,7 +390,7 @@ def user_update():
389
390
Session = sessionmaker (engine )
390
391
391
392
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
393
394
394
395
PU = Table ("pdp_users" , metadata , autoload = True , autoload_with = engine )
395
396
# pr = Table("pdp_user_roles", metadata, autoload=True, autoload_with=engine)
You can’t perform that action at this time.
0 commit comments