用户密码修改没传userid
This commit is contained in:
parent
d6aadc1624
commit
9d99eee92e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue