优化授权码模式的登录错误响应

This commit is contained in:
zlt2000
2020-05-27 22:57:28 +08:00
parent b45f3c85d2
commit 9947000ce1
5 changed files with 13 additions and 36 deletions
@@ -34,4 +34,9 @@ $(function(){
$(this).parent().next().hide();
}
});
let query = location.search;
if (query === '?error') {
$('#loginError').show();
}
});
@@ -30,6 +30,7 @@
<div class="form_btn">
<button type="submit">登录</button>
</div>
<div id="loginError" class="ececk_warning" style="text-align: center;"><span>用户名或密码错误</span></div>
<div class="form_reg_btn">
<!--span>还没有帐号?</span><a href="/register">马上注册</a-->
&nbsp;