1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-12-27 14:58:59 +00:00

updated url_for links

This commit is contained in:
Lynne Megido 2019-09-19 15:51:46 +10:00
parent ded8fac097
commit f4505012ae

View file

@ -163,13 +163,13 @@ def render_bot_create():
@app.route("/bot/create/back")
def bot_create_back():
session['step'] -= 1
return redirect(url_for("bot_create"), 303)
return redirect(url_for("render_bot_create"), 303)
@app.route("/do/authenticate_bot")
def do_authenticate_bot():
session['code'] = request.args.get('code')
session['step'] = 4
return redirect(url_for("bot_create"), 303)
return redirect(url_for("render_bot_create"), 303)
@app.route("/push/<id>", methods = ['POST'])
def push(id):
@ -246,12 +246,12 @@ def do_signup():
# success!
session['user_id'] = user_id
return redirect(url_for('home'))
return redirect(url_for('render_home'))
@app.route("/do/signout")
def do_signout():
session.clear()
return redirect(url_for("home"))
return redirect(url_for("render_home"))
@app.route("/do/login", methods=['POST'])
def do_login():
@ -266,7 +266,7 @@ def do_login():
if bcrypt.checkpw(pw_hashed, data['password']):
session['user_id'] = data['id']
return redirect(url_for("home"))
return redirect(url_for("render_home"))
else:
session['error'] = "Incorrect login information."