修改密码导航栏错误

This commit is contained in:
huang 2015-12-11 17:56:26 +08:00
parent b981f3dcea
commit 0ac4821f14
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class MyController < ApplicationController
flash[:notice] = l(:notice_mail_notification_updated)
redirect_to my_account_url
else
redirect_to signin_url
redirect_to signin_url
end
end
@ -223,7 +223,7 @@ class MyController < ApplicationController
end
flash.now[:error] = l(:notice_account_old_wrong_password)
end
render :template => 'my/account',:layout=>'base_users_new'
render :template => 'my/account',:layout=>'new_base_user'
end
# Create a new feeds key

View File

@ -228,7 +228,7 @@ class UsersService
end
course_list
end
#修改密码
def change_password params
@current_user = User.find(params[:current_user_id])