mirror of
https://github.com/wassname/flask-security.git
synced 2026-10-02 12:10:40 +08:00
commit
095ade8bbc
1 file changed
+1
@@ -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