Skip to content

Commit

Permalink
Change user locked time
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed Aug 23, 2023
1 parent 81e110f commit 26f9bbe
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 26f9bbe

Please sign in to comment.