diff --git a/backend/routes_auth.py b/backend/routes_auth.py index 4c7f2c62937c8b04424819c4ed8584064d56db32..1cabcf450c6ba636a3099f9977a61e03a2dbd3e3 100644 --- a/backend/routes_auth.py +++ b/backend/routes_auth.py @@ -26,26 +26,8 @@ def load_user(ID): """ return user -@auth.route("/", methods=["GET", "POST"]) -def register(): - form = RegisterForm() - - if request.method == 'POST' and form.validate(): - - current_app.security.datastore.create_user( - active=False, - email=form.email.data, - username=form.username.data, - password=hash_password(form.password.data) - ) - - all_users = db.session.execute(select(User)).scalars().all() - for usr in all_users: - print(usr.username) - print(usr.fs_uniquifier) - print(usr.id) - - return render_template('index.html', register_form=form) + + @auth.route("/login", methods=["GET", "POST"]) def login():