Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

views: allow token authentication for change_password #462

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flask_security/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from .confirmable import send_confirmation_instructions, \
confirm_user, confirm_email_token_status
from .decorators import login_required, anonymous_user_required
from .decorators import anonymous_user_required, auth_required
from .passwordless import send_login_instructions, \
login_token_status
from .recoverable import reset_password_token_status, \
Expand Down Expand Up @@ -292,7 +292,7 @@ def reset_password(token):
**_ctx('reset_password'))


@login_required
@auth_required('session', 'token', 'basic')
def change_password():
"""View function which handles a change password request."""

Expand Down