优化授权码模式的登录错误响应
This commit is contained in:
@@ -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-->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user