Skip to content

Commit

Permalink
Merge pull request #3 from leozhang2018/web_custom_connector
Browse files Browse the repository at this point in the history
Show errors in password template.
  • Loading branch information
panxunying authored Nov 17, 2021
2 parents ef3ee6d + bf2e85a commit 2e16db3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion custom-web/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,15 @@ a {
}

.login .login-inner-form .form-group {
margin-bottom: 25px;
margin-bottom: 15px;
text-align: left;
}

.login .login-inner-form .error-text {
margin-bottom: 5px;
color: #f56c6c;
}

.login .login-inner-form .input-text {
width: 100%;
height: 45px;
Expand Down
10 changes: 5 additions & 5 deletions custom-web/templates/password.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
<label for="password">密码</label>
<input required id="password" name="password" type="password" class="form-control" placeholder="请输入密码" {{ if .Invalid }} autofocus {{ end }}/>
</div>
<!-- {{ if .Invalid }}
<p class="text-left">{{ .UsernamePrompt }} 和密码不正确</p>
{{ end }} -->
{{ if .Invalid }}
<p class="text-left error-text">{{ .UsernamePrompt }}或密码不正确</p>
{{ end }}
<button type="submit" class="btn btn-primary btn-md btn-block">登录</button>
</form>
<!-- {{ if .BackLink }} -->
{{ if .BackLink }}
<div class="link-back">
<a class="dex-subtle-text" href="{{ .BackLink }}">选择其它登录方式</a>
</div>
<!-- {{ end }} -->
{{ end }}
</div>

{{ template "footer.html" . }}

0 comments on commit 2e16db3

Please sign in to comment.