Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions templates/user/auth/signup_openid_connect.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,9 @@
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
</div>
<div class="inline field">
OpenID: {{ .OpenID }}
<label for="openid">OpenID URI</label>
<input id="openid" value="{{ .OpenID }}" readonly>
</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">
<label></label>
<button class="ui green button">{{.i18n.Tr "auth.openid_connect_submit"}}</button>
Expand Down
3 changes: 2 additions & 1 deletion templates/user/auth/signup_openid_register.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
<input id="email" name="email" type="email" value="{{.email}}" required>
</div>
<div class="inline field">
OpenID: {{ .OpenID }}
<label for="openid">OpenID URI</label>
<input id="openid" value="{{ .OpenID }}" readonly>
</div>
<div class="inline field">
<label></label>
Expand Down