From 9d99eee92eb33963b5a28f352e0cf0318a34ce36 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Tue, 23 Dec 2014 10:16:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=AF=86=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=B2=A1=E4=BC=A0userid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/mobile/apis/users.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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