remotes/1693045480750635534/spooky-22
Aevann1 2021-07-26 21:19:16 +02:00
parent 21753657a1
commit 8a2a34c659
1 changed files with 2 additions and 5 deletions

View File

@ -158,7 +158,7 @@ def logout(v):
@auth_desired
def sign_up_get(v):
with open('./disablesignups', 'r') as f:
if f.read() == "yes": return "Signups are disable for the time being.", 403
if f.read() == "yes": return "New account registration is currently closed. Please come back later.", 403
if v: return redirect("/")
@ -215,7 +215,7 @@ def sign_up_get(v):
@auth_desired
def sign_up_post(v):
with open('./disablesignups', 'r') as f:
if f.read() == "yes": return "Signups are disable for the time being.", 403
if f.read() == "yes": return "New account registration is currently closed. Please come back later.", 403
if v:
abort(403)
@ -261,9 +261,6 @@ def sign_up_post(v):
return redirect(f"/signup?{urlencode(args)}")
if app.config["DISABLE_SIGNUPS"]:
return new_signup("New account registration is currently closed. Please come back later.")
if now - int(form_timestamp) < 5:
#print(f"signup fail - {username } - too fast")
return new_signup("There was a problem. Please try again.")