forked from rDrama/rDrama
sneed
parent
a66e35c20a
commit
8c1bee5bb4
|
@ -156,7 +156,8 @@ def logout(v):
|
||||||
@no_cors
|
@no_cors
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def sign_up_get(v):
|
def sign_up_get(v):
|
||||||
#if disablesignups: return "Signups are disable for the time being.", 403
|
if app.config.get("DISABLESIGNUPS", False):
|
||||||
|
return "Signups are disable for the time being.", 403
|
||||||
|
|
||||||
if v: return redirect("/")
|
if v: return redirect("/")
|
||||||
|
|
||||||
|
@ -212,7 +213,8 @@ def sign_up_get(v):
|
||||||
@no_cors
|
@no_cors
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def sign_up_post(v):
|
def sign_up_post(v):
|
||||||
#if disablesignups: return "Signups are disable for the time being.", 403
|
if app.config.get("DISABLESIGNUPS", False):
|
||||||
|
return "Signups are disable for the time being.", 403
|
||||||
|
|
||||||
if v:
|
if v:
|
||||||
abort(403)
|
abort(403)
|
||||||
|
|
Loading…
Reference in New Issue