fddf
This commit is contained in:
parent
5a8a9de184
commit
9f058be9e6
16 changed files with 26 additions and 35 deletions
|
@ -134,6 +134,7 @@ def login_post():
|
|||
|
||||
|
||||
@app.route("/me", methods=["GET"])
|
||||
@app.route("/@me", methods=["GET"])
|
||||
@auth_required
|
||||
def me(v):
|
||||
return redirect(v.url)
|
||||
|
@ -156,8 +157,8 @@ def logout(v):
|
|||
@no_cors
|
||||
@auth_desired
|
||||
def sign_up_get(v):
|
||||
#if app.config.get("DISABLESIGNUPS", False):
|
||||
# return "Signups are disable for the time being.", 403
|
||||
with open('./disablesignups', 'r') as f:
|
||||
if f.read() == "yes": return "Signups are disable for the time being.", 403
|
||||
|
||||
if v: return redirect("/")
|
||||
|
||||
|
@ -213,8 +214,8 @@ def sign_up_get(v):
|
|||
@no_cors
|
||||
@auth_desired
|
||||
def sign_up_post(v):
|
||||
#if app.config.get("DISABLESIGNUPS", False):
|
||||
# return "Signups are disable for the time being.", 403
|
||||
with open('./disablesignups', 'r') as f:
|
||||
if f.read() == "yes": return "Signups are disable for the time being.", 403
|
||||
|
||||
if v:
|
||||
abort(403)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue