Refactor stats into a macro and add format number red on failure

This commit is contained in:
Imdad Ahad
2016-11-14 16:42:08 +00:00
parent eaa246bd26
commit 5ce0cbe1db
2 changed files with 24 additions and 36 deletions

View File

@@ -202,7 +202,7 @@ def user_profile_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_user_password(current_user.id, form.new_password.data)
return redirect(url_for('.user_profile'))
return render_template(