diff --git a/app/api/mobile/apis/users.rb b/app/api/mobile/apis/users.rb index ab74c16e6..975ac6c2c 100644 --- a/app/api/mobile/apis/users.rb +++ b/app/api/mobile/apis/users.rb @@ -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