修改密码返回错误问题
This commit is contained in:
parent
93762e89d3
commit
d7557e2839
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue