mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-07 00:06:15 +08:00
add logout_user() to the beginning of confirm_email()
This commit is contained in:
@@ -203,6 +203,8 @@ def send_confirmation():
|
||||
def confirm_email(token):
|
||||
"""View function which handles a email confirmation request."""
|
||||
|
||||
logout_user()
|
||||
|
||||
expired, invalid, user = confirm_email_token_status(token)
|
||||
|
||||
if not user or invalid:
|
||||
|
||||
Reference in New Issue
Block a user