Skip to content

Commit

Permalink
Fix OAuth Source Edit Page to ensure restricted and group settings ar…
Browse files Browse the repository at this point in the history
…e set

Fix go-gitea#18432

Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed Jan 31, 2022
1 parent db7c3ec commit 6907972
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routers/web/admin/auths.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ func parseOAuth2Config(form forms.AuthenticationForm) *oauth2.Source {
RequiredClaimName: form.Oauth2RequiredClaimName,
RequiredClaimValue: form.Oauth2RequiredClaimValue,
SkipLocalTwoFA: form.SkipLocalTwoFA,
GroupClaimName: form.Oauth2GroupClaimName,
RestrictedGroup: form.Oauth2RestrictedGroup,
AdminGroup: form.Oauth2AdminGroup,
}
}

Expand Down

0 comments on commit 6907972

Please sign in to comment.