From d7557e2839557549a61a7a26805d64268770c49c Mon Sep 17 00:00:00 2001 From: z9han Date: Tue, 23 Dec 2014 14:46:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/mobile/apis/users.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/mobile/apis/users.rb b/app/api/mobile/apis/users.rb index b47d8f61e..a566b702d 100644 --- a/app/api/mobile/apis/users.rb +++ b/app/api/mobile/apis/users.rb @@ -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