Skip to content

Commit 28bb6e8

Browse files
committed
move confidential client checkbox under redirect uri
1 parent 8ba4b5e commit 28bb6e8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: templates/user/settings/applications_oauth2_edit_form.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
<label for="application-name">{{.locale.Tr "settings.oauth2_application_name"}}</label>
4040
<input id="application-name" value="{{.App.Name}}" name="application_name" required>
4141
</div>
42-
<div class="field ui checkbox {{if .Err_ConfidentialClient}}error{{end}}">
43-
<label>{{.locale.Tr "settings.oauth2_confidential_client"}}</label>
44-
<input type="checkbox" name="confidential_client" {{if .App.ConfidentialClient}}checked{{end}}>
45-
</div>
4642
<div class="field {{if .Err_RedirectURI}}error{{end}}">
4743
<label for="redirect-uri">{{.locale.Tr "settings.oauth2_redirect_uri"}}</label>
4844
<input type="url" name="redirect_uri" value="{{.App.PrimaryRedirectURI}}" id="redirect-uri">
4945
</div>
46+
<div class="field ui checkbox {{if .Err_ConfidentialClient}}error{{end}}">
47+
<label>{{.locale.Tr "settings.oauth2_confidential_client"}}</label>
48+
<input type="checkbox" name="confidential_client" {{if .App.ConfidentialClient}}checked{{end}}>
49+
</div>
5050
<button class="ui green button">
5151
{{.locale.Tr "settings.save_application"}}
5252
</button>

Diff for: templates/user/settings/applications_oauth2_list.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
<label for="application-name">{{.locale.Tr "settings.oauth2_application_name"}}</label>
3434
<input id="application-name" name="application_name" value="{{.application_name}}" required>
3535
</div>
36-
<div class="field ui checkbox {{if .Err_ConfidentialClient}}error{{end}}">
37-
<label>{{.locale.Tr "settings.oauth2_confidential_client"}}</label>
38-
<input type="checkbox" name="confidential_client" checked>
39-
</div>
4036
<div class="field {{if .Err_RedirectURI}}error{{end}}">
4137
<label for="redirect-uri">{{.locale.Tr "settings.oauth2_redirect_uri"}}</label>
4238
<input type="url" name="redirect_uri" id="redirect-uri">
4339
</div>
40+
<div class="field ui checkbox {{if .Err_ConfidentialClient}}error{{end}}">
41+
<label>{{.locale.Tr "settings.oauth2_confidential_client"}}</label>
42+
<input type="checkbox" name="confidential_client" checked>
43+
</div>
4444
<button class="ui green button">
4545
{{.locale.Tr "settings.create_oauth2_application_button"}}
4646
</button>

0 commit comments

Comments
 (0)