chore: fix function names in comment
Signed-off-by: yudrywet <yudeyao@yeah.net>
commit4fe0d5659b7f4ce79aa654e36277eef47fe72b20
authoryudrywet <yudeyao@yeah.net>
dateSun 14 Apr 2024, 20:01 (3 years ago)
parente91f098
oauthproxy.go+1−1
@@ -1231,7 +1231,7 @@ func checkAllowedEmails(req *http.Request, s *sessionsapi.SessionState) bool {
12311231 return allowed
12321232}
12331233
1234−// encodedState builds the OAuth state param out of our nonce and
1234+// encodeState builds the OAuth state param out of our nonce and
12351235// original application redirect
12361236func encodeState(nonce string, redirect string, encode bool) string {
12371237 rawString := fmt.Sprintf("%v:%v", nonce, redirect)
pkg/authentication/basic/htpasswd.go+1−1
@@ -87,7 +87,7 @@ func (h *htpasswdMap) loadHTPasswdFile(filename string) error {
8787 return nil
8888}
8989
90−// createHtasswdMap constructs an htpasswdMap from the given records
90+// createHtpasswdMap constructs an htpasswdMap from the given records
9191func createHtpasswdMap(records [][]string) (*htpasswdMap, error) {
9292 h := &htpasswdMap{users: make(map[string]interface{})}
9393 var invalidRecords, invalidEntries []string
pkg/validation/allowlist.go+1−1
@@ -46,7 +46,7 @@ func validateAuthRoutes(o *options.Options) []string {
4646 return msgs
4747}
4848
49−// validateRegex validates regex paths passed with options.SkipAuthRegex
49+// validateAuthRegexes validates regex paths passed with options.SkipAuthRegex
5050func validateAuthRegexes(o *options.Options) []string {
5151 return validateRegexes(o.SkipAuthRegex)
5252}