Skip to content

Commit 430cc4f

Browse files
strklunny
authored andcommitted
Use readonly input form to show the validated OpenID URI (#1308)
1 parent 8bcb643 commit 430cc4f

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

templates/user/auth/signup_openid_connect.tmpl

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,9 @@
2121
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
2222
</div>
2323
<div class="inline field">
24-
OpenID: {{ .OpenID }}
24+
<label for="openid">OpenID URI</label>
25+
<input id="openid" value="{{ .OpenID }}" readonly>
2526
</div>
26-
{{if .EnableCaptcha}}
27-
<div class="inline field">
28-
<label></label>
29-
{{.Captcha.CreateHtml}}
30-
</div>
31-
<div class="required inline field {{if .Err_Captcha}}error{{end}}">
32-
<label for="captcha">{{.i18n.Tr "captcha"}}</label>
33-
<input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off">
34-
</div>
35-
{{end}}
3627
<div class="inline field">
3728
<label></label>
3829
<button class="ui green button">{{.i18n.Tr "auth.openid_connect_submit"}}</button>

templates/user/auth/signup_openid_register.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
<input id="email" name="email" type="email" value="{{.email}}" required>
2222
</div>
2323
<div class="inline field">
24-
OpenID: {{ .OpenID }}
24+
<label for="openid">OpenID URI</label>
25+
<input id="openid" value="{{ .OpenID }}" readonly>
2526
</div>
2627
<div class="inline field">
2728
<label></label>

0 commit comments

Comments
 (0)