mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
updated url_for links
This commit is contained in:
parent
ded8fac097
commit
f4505012ae
1 changed files with 5 additions and 5 deletions
10
app/webui.py
10
app/webui.py
|
@ -163,13 +163,13 @@ def render_bot_create():
|
||||||
@app.route("/bot/create/back")
|
@app.route("/bot/create/back")
|
||||||
def bot_create_back():
|
def bot_create_back():
|
||||||
session['step'] -= 1
|
session['step'] -= 1
|
||||||
return redirect(url_for("bot_create"), 303)
|
return redirect(url_for("render_bot_create"), 303)
|
||||||
|
|
||||||
@app.route("/do/authenticate_bot")
|
@app.route("/do/authenticate_bot")
|
||||||
def do_authenticate_bot():
|
def do_authenticate_bot():
|
||||||
session['code'] = request.args.get('code')
|
session['code'] = request.args.get('code')
|
||||||
session['step'] = 4
|
session['step'] = 4
|
||||||
return redirect(url_for("bot_create"), 303)
|
return redirect(url_for("render_bot_create"), 303)
|
||||||
|
|
||||||
@app.route("/push/<id>", methods = ['POST'])
|
@app.route("/push/<id>", methods = ['POST'])
|
||||||
def push(id):
|
def push(id):
|
||||||
|
@ -246,12 +246,12 @@ def do_signup():
|
||||||
|
|
||||||
# success!
|
# success!
|
||||||
session['user_id'] = user_id
|
session['user_id'] = user_id
|
||||||
return redirect(url_for('home'))
|
return redirect(url_for('render_home'))
|
||||||
|
|
||||||
@app.route("/do/signout")
|
@app.route("/do/signout")
|
||||||
def do_signout():
|
def do_signout():
|
||||||
session.clear()
|
session.clear()
|
||||||
return redirect(url_for("home"))
|
return redirect(url_for("render_home"))
|
||||||
|
|
||||||
@app.route("/do/login", methods=['POST'])
|
@app.route("/do/login", methods=['POST'])
|
||||||
def do_login():
|
def do_login():
|
||||||
|
@ -266,7 +266,7 @@ def do_login():
|
||||||
|
|
||||||
if bcrypt.checkpw(pw_hashed, data['password']):
|
if bcrypt.checkpw(pw_hashed, data['password']):
|
||||||
session['user_id'] = data['id']
|
session['user_id'] = data['id']
|
||||||
return redirect(url_for("home"))
|
return redirect(url_for("render_home"))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
session['error'] = "Incorrect login information."
|
session['error'] = "Incorrect login information."
|
||||||
|
|
Loading…
Reference in a new issue