Use readonly input form to show the validated OpenID URI (#1308)

This commit is contained in:
Sandro Santilli 2017-03-20 02:50:24 +01:00 committed by Lunny Xiao
parent 8bcb643a03
commit 430cc4f42a
2 changed files with 4 additions and 12 deletions

View File

@ -21,18 +21,9 @@
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required> <input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
</div> </div>
<div class="inline field"> <div class="inline field">
OpenID: {{ .OpenID }} <label for="openid">OpenID URI</label>
<input id="openid" value="{{ .OpenID }}" readonly>
</div> </div>
{{if .EnableCaptcha}}
<div class="inline field">
<label></label>
{{.Captcha.CreateHtml}}
</div>
<div class="required inline field {{if .Err_Captcha}}error{{end}}">
<label for="captcha">{{.i18n.Tr "captcha"}}</label>
<input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off">
</div>
{{end}}
<div class="inline field"> <div class="inline field">
<label></label> <label></label>
<button class="ui green button">{{.i18n.Tr "auth.openid_connect_submit"}}</button> <button class="ui green button">{{.i18n.Tr "auth.openid_connect_submit"}}</button>

View File

@ -21,7 +21,8 @@
<input id="email" name="email" type="email" value="{{.email}}" required> <input id="email" name="email" type="email" value="{{.email}}" required>
</div> </div>
<div class="inline field"> <div class="inline field">
OpenID: {{ .OpenID }} <label for="openid">OpenID URI</label>
<input id="openid" value="{{ .OpenID }}" readonly>
</div> </div>
<div class="inline field"> <div class="inline field">
<label></label> <label></label>