Skip to content

Commit 2e16db3

Browse files
authored
Merge pull request #3 from leozhang2018/web_custom_connector
Show errors in password template.
2 parents ef3ee6d + bf2e85a commit 2e16db3

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

custom-web/static/main.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,15 @@ a {
117117
}
118118

119119
.login .login-inner-form .form-group {
120-
margin-bottom: 25px;
120+
margin-bottom: 15px;
121121
text-align: left;
122122
}
123123

124+
.login .login-inner-form .error-text {
125+
margin-bottom: 5px;
126+
color: #f56c6c;
127+
}
128+
124129
.login .login-inner-form .input-text {
125130
width: 100%;
126131
height: 45px;

custom-web/templates/password.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
<label for="password">密码</label>
1414
<input required id="password" name="password" type="password" class="form-control" placeholder="请输入密码" {{ if .Invalid }} autofocus {{ end }}/>
1515
</div>
16-
<!-- {{ if .Invalid }}
17-
<p class="text-left">{{ .UsernamePrompt }} 和密码不正确</p>
18-
{{ end }} -->
16+
{{ if .Invalid }}
17+
<p class="text-left error-text">{{ .UsernamePrompt }}或密码不正确</p>
18+
{{ end }}
1919
<button type="submit" class="btn btn-primary btn-md btn-block">登录</button>
2020
</form>
21-
<!-- {{ if .BackLink }} -->
21+
{{ if .BackLink }}
2222
<div class="link-back">
2323
<a class="dex-subtle-text" href="{{ .BackLink }}">选择其它登录方式</a>
2424
</div>
25-
<!-- {{ end }} -->
25+
{{ end }}
2626
</div>
2727

2828
{{ template "footer.html" . }}

0 commit comments

Comments
 (0)