From 60d7f5d5ace28136f6bc3e1bcde427f25916eb3b Mon Sep 17 00:00:00 2001 From: Argo Window10 Date: Sat, 7 Dec 2019 10:48:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3=E8=A2=AB=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=97=B6=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=88=96=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E4=B8=BA=E7=A9=BA=E6=97=B6=E7=9B=B4=E6=8E=A5=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Controllers/AccountController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/admin/Bootstrap.Admin/Controllers/AccountController.cs b/src/admin/Bootstrap.Admin/Controllers/AccountController.cs index 3277c156..730ac1f0 100644 --- a/src/admin/Bootstrap.Admin/Controllers/AccountController.cs +++ b/src/admin/Bootstrap.Admin/Controllers/AccountController.cs @@ -93,6 +93,8 @@ namespace Bootstrap.Admin.Controllers [HttpPost()] public async Task Mobile([FromServices]ISMSProvider provider, string phone, string code) { + if (string.IsNullOrEmpty(phone) || string.IsNullOrEmpty(code)) return RedirectLogin(); + var auth = provider.Validate(phone, code); HttpContext.Log(phone, auth); if (auth)