From c5826a04a21c4854a756af2a50dc1e14783151f7 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 27 Mar 2017 15:07:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BF=80=E6=B4=BB=E6=8F=90=E7=A4=BA=E9=A1=B5?= =?UTF-8?q?=E7=9A=84=E6=9B=B4=E6=8D=A2=E9=82=AE=E7=AE=B1=EF=BC=8C=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E7=A1=AE=E5=AE=9A=E5=90=8E=E5=BA=94=E8=AF=A5=E9=A9=AC?= =?UTF-8?q?=E4=B8=8A=E7=BB=99=E6=96=B0=E7=9A=84=E9=82=AE=E7=AE=B1=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E5=8F=91=E9=80=81=E6=BF=80=E6=B4=BB=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/account/_change_user_email.html.erb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/views/account/_change_user_email.html.erb b/app/views/account/_change_user_email.html.erb index 20eae1374..519ffb8a5 100644 --- a/app/views/account/_change_user_email.html.erb +++ b/app/views/account/_change_user_email.html.erb @@ -59,13 +59,18 @@ if($mail_correct == false){ return }else{ + // 改变邮箱地址 $.get('<%= account_change_email_path(:user_id => @user.id) %>', { valid: "mail", value: document.getElementById("user_mail").value }, function (data){ - $("#user_email_show").html(data.email); - hideModal(); - return; + $("#user_email_show").html(data.email); + // 更改邮箱地址后,直接给用户发送邮件 + $.ajax({ + url: "<%= resendmail_path(:user => @user) %>" + }); + hideModal(); + return; }); } }