修改密码返回错误问题

This commit is contained in:
z9han 2014-12-23 14:46:23 +08:00
parent 93762e89d3
commit d7557e2839
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ module Mobile
post 'password' do
authenticate!
us = UsersService.new
ue = us.change_password params.merge(current_user_id: current_user.id,
user = us.change_password params.merge(current_user_id: current_user.id,
new_password_confirmation: params[:new_password])
present :data, user, with: Mobile::Entities::User
present :status, 0