Closed parthjeet closed 1 year ago
Correct - if you don't require confirmation, it automatically logs you in.
Do you think this can be added in a future release? Giving an option to not automatically log in after registration even if email confirmation is not required?
Also, a StackOverflow user(pjcunningham), helped with a workaround.
from flask_security.utils import logout_user
@app.route('/login_redirect/')
@login_required
def login_redirect():
logout_user()
return redirect(url_for('security.login'))
When a user is registered, I do not want the user to log in automatically, instead the page should redirect to the login page. Here are my configs:
Below is the /login_redirect/ route definition