dfsdf
parent
c66b69f849
commit
5f4a4be38b
|
@ -184,8 +184,7 @@ def sign_up_get(v):
|
||||||
if v: return redirect("/")
|
if v: return redirect("/")
|
||||||
|
|
||||||
agent = request.headers.get("User-Agent", None)
|
agent = request.headers.get("User-Agent", None)
|
||||||
if not agent:
|
if not agent: abort(403)
|
||||||
abort(403)
|
|
||||||
|
|
||||||
# check for referral in link
|
# check for referral in link
|
||||||
ref = request.values.get("ref", None)
|
ref = request.values.get("ref", None)
|
||||||
|
@ -232,12 +231,10 @@ def sign_up_post(v):
|
||||||
with open('./disablesignups', 'r') as f:
|
with open('./disablesignups', 'r') as f:
|
||||||
if f.read() == "yes": return "New account registration is currently closed. Please come back later.", 403
|
if f.read() == "yes": return "New account registration is currently closed. Please come back later.", 403
|
||||||
|
|
||||||
if v:
|
if v: abort(403)
|
||||||
abort(403)
|
|
||||||
|
|
||||||
agent = request.headers.get("User-Agent", None)
|
agent = request.headers.get("User-Agent", None)
|
||||||
if not agent:
|
if not agent: abort(403)
|
||||||
abort(403)
|
|
||||||
|
|
||||||
form_timestamp = request.values.get("now", '0')
|
form_timestamp = request.values.get("now", '0')
|
||||||
form_formkey = request.values.get("formkey", "none")
|
form_formkey = request.values.get("formkey", "none")
|
||||||
|
|
Loading…
Reference in New Issue