mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-23 12:50:33 +08:00
this fixes #175
This commit is contained in:
@@ -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('security/change_password.html',
|
||||
|
||||
Reference in New Issue
Block a user