From 53d9204a98fa7eb3ab5d8cf9d1f8dfeea5a5baff Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Fri, 13 Sep 2019 22:07:02 -0400 Subject: nfsw/auth.py: Remove auth. --- nfsw/auth.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/nfsw/auth.py b/nfsw/auth.py index 3c38c93..3d358d4 100644 --- a/nfsw/auth.py +++ b/nfsw/auth.py @@ -15,30 +15,6 @@ from nfsw.db import get_db bp = Blueprint('auth', __name__) -@bp.route('start', methods=('GET', 'POST')) -def auth(): - if request.method == 'POST': - username = request.form['username'] - - password = None - if 'password' in request.form: - password = request.form['password'] - - if not username: - return { - 'status': 'error', - 'msg': 'Name is required', - 'fields': ['username'] - } - elif username and password: - return login(username, password) - - else: - return register(username) - - return render_template('auth/index.html') - - def login(username, password): db = get_db() -- cgit v1.2.3