From e0d2f7bdf70b6bb1172ec1b57c0b4d65a1f6d2c5 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 22 Sep 2019 10:21:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BB=E9=99=86=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=88=B0=E6=95=B0=E6=8D=AE=E5=BA=93=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #Issue link !32 --- src/admin/Bootstrap.Admin/Views/Admin/Settings.cshtml | 2 +- src/admin/Bootstrap.Admin/wwwroot/js/settings.js | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/admin/Bootstrap.Admin/Views/Admin/Settings.cshtml b/src/admin/Bootstrap.Admin/Views/Admin/Settings.cshtml index 0351ff7c..6a47e05b 100644 --- a/src/admin/Bootstrap.Admin/Views/Admin/Settings.cshtml +++ b/src/admin/Bootstrap.Admin/Views/Admin/Settings.cshtml @@ -116,7 +116,7 @@ diff --git a/src/admin/Bootstrap.Admin/wwwroot/js/settings.js b/src/admin/Bootstrap.Admin/wwwroot/js/settings.js index 29310d6e..af739de1 100644 --- a/src/admin/Bootstrap.Admin/wwwroot/js/settings.js +++ b/src/admin/Bootstrap.Admin/wwwroot/js/settings.js @@ -52,6 +52,16 @@ $(function () { } }); break; + case 'loginSettings': + var mobile = $('#mobile').prop('checked') ? "1" : "0"; + $.bc({ + url: Settings.url, data: { name: '短信验证码登录', code: mobile, category: '网站设置' }, method: "post" + }); + var oauth = $('#oauth').prop('checked') ? "1" : "0"; + $.bc({ + url: Settings.url, data: { name: 'OAuth 认证登录', code: oauth, category: '网站设置' }, title: '登录设置', method: "post" + }); + break; case 'saveAutoLock': var autoLock = $('#lockScreen').prop('checked') ? "1" : "0"; $.bc({