用户密码修改没传userid

This commit is contained in:
guange 2014-12-23 10:16:23 +08:00
parent d6aadc1624
commit 9d99eee92e
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ module Mobile
post 'password' do
authenticate!
us = UsersService.new
ue = us.change_password params.merge(new_password_confirmation: params[:new_password])
ue = 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
end