Skip to content
Snippets Groups Projects
Commit d4f6d5f5 authored by danielmyren's avatar danielmyren
Browse files

moved index route to default blueprint

parent 2fe815d7
Branches
No related tags found
No related merge requests found
......@@ -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():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment