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

View File

@ -31,12 +31,12 @@
.login-wrap { .login-wrap {
padding: 0; padding: 0;
margin: 12px 0 0 370px; margin: 36px 0 0 370px;
width: 280px; width: 280px;
} }
.slidercaptcha { .slidercaptcha {
top: -282px; top: -254px;
left: -15px; left: -15px;
} }
@ -45,7 +45,20 @@
height: 280px; height: 280px;
} }
.form-signin .form-group { .login-wrap[data-auth="True"] {
margin-bottom: 0.75rem; 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 { .login-wrap {
padding: 20px; padding: 20px;
height: 330px; height: 270px;
} }
.login-wrap .rememberPwd { .login-wrap .rememberPwd {
@ -27,6 +27,10 @@
width: 13px; width: 13px;
} }
.login-wrap[data-auth="True"] {
height: 330px;
}
.login-footer a:last-child { .login-footer a:last-child {
float: right; float: right;
} }