Merge pull request #1106 from alphagov/feat-update-user-profile-password-with-new-endpoint

Update password on user profile with new endpoint
This commit is contained in:
imdadahad
2017-02-10 17:23:46 +00:00
committed by GitHub
5 changed files with 27 additions and 3 deletions

View File

@@ -201,8 +201,7 @@ def user_profile_password():
form = ChangePasswordForm(_check_password)
if form.validate_on_submit():
current_user.set_password(form.new_password.data)
user_api_client.update_user(current_user)
user_api_client.update_password(current_user.id, password=form.new_password.data)
return redirect(url_for('.user_profile'))
return render_template(