Skip to content

Commit

Permalink
Merge pull request #5 from keitaroinc/locked-time
Browse files Browse the repository at this point in the history
Change user locked time
  • Loading branch information
blagojabozinovski authored Aug 23, 2023
2 parents 6803c0d + 26f9bbe commit 5618dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/password_policy/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def user_login_count(username):
redis_conn = connect_to_redis()
user_cached = redis_conn.get(username)
if user_cached == None:
expiry = config.get('ckanext.password_policy.user_locked_time', 600)
expiry = config.get('ckanext.password_policy.user_locked_time', 900)
# user will be cached in redis with count 1
redis_conn.set(username, 1, ex=expiry)
else:
Expand Down

0 comments on commit 5618dc9

Please sign in to comment.