refactor(#IVRNQ): 登录页面出错后提示信息

移除默认提示信息
#Issue
https://gitee.com/LongbowEnterprise/dashboard/issues?id=IVRNQ

#Comment
Link #IVRNQ
This commit is contained in:
Argo Zhang 2019-04-24 15:10:33 +08:00
parent f77c2906d5
commit 20c870111f
3 changed files with 24 additions and 14 deletions

View File

@ -45,15 +45,8 @@
<input id="imgUrl" type="hidden" value="@Model.ImageLibUrl" />
<form id="login" method="post" class="form-signin">
<h2 class="form-signin-heading">@Model.Title</h2>
<div class="login-wrap" data-toggle="LgbValidate" data-valid-button="button[type='submit']">
@if (Model.AuthFailed)
{
<div class="alert alert-danger">用户名或密码错误!</div>
}
else
{
<div class="alert alert-success">请输入用户名与密码</div>
}
<div class="login-wrap" data-auth="@Model.AuthFailed" data-toggle="LgbValidate" data-valid-button="button[type='submit']">
<div class="alert alert-danger" asp-condition="@Model.AuthFailed">用户名或密码错误!</div>
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">

View File

@ -31,12 +31,12 @@
.login-wrap {
padding: 0;
margin: 12px 0 0 370px;
margin: 36px 0 0 370px;
width: 280px;
}
.slidercaptcha {
top: -282px;
top: -254px;
left: -15px;
}
@ -45,7 +45,20 @@
height: 280px;
}
.form-signin .form-group {
margin-bottom: 0.75rem;
.login-wrap[data-auth="True"] {
margin: 12px 0 0 370px;
}
.login-wrap[data-auth="True"] .slidercaptcha {
top: -282px;
}
.login-wrap[data-auth="True"] .slidercaptcha, .slidercaptcha.forgot {
width: 310px;
height: 280px;
}
.login-wrap[data-auth="True"] .form-group {
margin-bottom: 0.75rem;
}
}

View File

@ -14,7 +14,7 @@
.login-wrap {
padding: 20px;
height: 330px;
height: 270px;
}
.login-wrap .rememberPwd {
@ -27,6 +27,10 @@
width: 13px;
}
.login-wrap[data-auth="True"] {
height: 330px;
}
.login-footer a:last-child {
float: right;
}