Answer the question
In order to leave comments, you need to log in
How to implement login in flask-security on the main page, and not on a separate one?
There is an application on Flask, there is a Flask-Security login and registration module. In its original form, the module login and registration occur on a separate page. Moved the route to the login on the main page ( app.route('/') ), inserted the forms into the template. However, now after login, when redirecting to the main page, I get a cyclic redirect. How to fix this without removing the login from the main one?
Flask-Security config:
SECURITY_POST_REGISTER_VIEW = '/success'
SECURITY_REGISTER_USER_TEMPLATE = '/register/register.html'
SECURITY_LOGIN_USER_TEMPLATE = '/register/home.html'
SECURITY_LOGIN_URL = '/'
SECURITY_POST_LOGIN_VIEW = 'profile'
SECURITY_UNAUTHORIZED_VIEW = '/'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question