From d952598f0844868bb2a6c6f60fa9ab80a2a8a956 Mon Sep 17 00:00:00 2001 From: gashapwn Date: Fri, 27 Nov 2020 00:14:37 +0000 Subject: [PATCH] cleaned up more old methods --- app.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app.py b/app.py index d1f2da1..daffccf 100644 --- a/app.py +++ b/app.py @@ -137,18 +137,9 @@ def signup(): print(username + " " + email + " " + shell + " " + rule_read) return render_template("signup.html", is_email_user = is_email_user) - - -def login(): - if request.method == "POST": - user = request.form["nm"] - return redirect(url_for('success', name = user)) - else: - return redirect(url_for('home')) if __name__=="__main__": app.add_url_rule('/rules', 'rules', rules) - app.add_url_rule('/login', 'login', login, methods = ['POST', 'GET']) app.add_url_rule('/req', 'req', req, methods = ['POST', 'GET']) app.add_url_rule('/req/signup', 'signup', signup, methods = ['POST']) app.run(host=conf_obj["listen_ip"],debug=True)