diff --git a/webui.py b/webui.py index 3da4ea9..ebc165c 100644 --- a/webui.py +++ b/webui.py @@ -22,7 +22,7 @@ scopes = ['write:statuses', 'write:accounts', 'read:accounts', 'read:notificatio @app.before_request def login_check(): - if request.path not in ['/', '/about', '/welcome', '/login', '/signup', '/do/login', '/do/signup', '/static/style.css']: + if request.path not in ['/', '/about', '/welcome', '/login', '/signup', '/do/login', '/do/signup', '/static/style.css'] and not request.path.startswith("/push"): # page requires authentication if 'user_id' not in session: return redirect(url_for('home')) @@ -489,6 +489,11 @@ def do_authenticate_bot(): session['step'] = 4 return redirect(url_for("bot_create"), 303) +@app.route("/push/") +def push(id): + c = db.cursor() + print(request.form) + @app.route("/do/signup", methods=['POST']) def do_signup(): # email validation is basically impossible without actually sending an email to the address