mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-27 16:10:11 +08:00
@@ -301,6 +301,7 @@ def change_password():
|
||||
get_url(_security.post_login_view))
|
||||
|
||||
if request.json:
|
||||
form.user = current_user
|
||||
return _render_json(form)
|
||||
|
||||
return render_template(config_value('CHANGE_PASSWORD_TEMPLATE'),
|
||||
|
||||
Reference in New Issue
Block a user