Refactor test system to be more extendable, add comment test
This commit is contained in:
parent
23a8fb9663
commit
e257db1542
8 changed files with 147 additions and 59 deletions
|
@ -261,8 +261,9 @@ def sign_up_post(v):
|
|||
|
||||
return redirect(f"/signup?{urlencode(args)}")
|
||||
|
||||
if now - int(form_timestamp) < 5:
|
||||
return signup_error("There was a problem. Please try again.")
|
||||
if app.config['RATE_LIMITER_ENABLED']:
|
||||
if now - int(form_timestamp) < 5:
|
||||
return signup_error("There was a problem. Please try again.")
|
||||
|
||||
if not hmac.compare_digest(correct_formkey, form_formkey):
|
||||
return signup_error("There was a problem. Please try again.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue