Skip to content

Commit

Permalink
Merge pull request #2192 from cdrini/2185/feature/reduce-recaptcha-ex…
Browse files Browse the repository at this point in the history
…empt-time

Reduce recaptcha exemption from 2yrs to 1mo
  • Loading branch information
mekarpeles authored Jun 13, 2019
2 parents bdfd629 + 7f42631 commit 47c72f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlibrary/plugins/upstream/addbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def recaptcha_exempt():
create_dt = account.creation_time()
now_dt = datetime.datetime.utcnow()
delta = now_dt - create_dt
return delta.days > 365*2
return delta.days > 30

def is_plugin_enabled(name):
plugin_names = delegate.get_plugins()
Expand Down

0 comments on commit 47c72f9

Please sign in to comment.