diff options
author | 6543 <6543@obermui.de> | 2020-12-23 19:52:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-23 20:52:46 +0100 |
commit | 5b958315c19ab686f351068681631e19eebd1d9a (patch) | |
tree | 082bef1a0ddcba64a13f1b3903fa01d6d20de338 /modules/auth | |
parent | a9876bca82e2c32ad39f8020c3f55b68f78f523e (diff) | |
download | gitea-5b958315c19ab686f351068681631e19eebd1d9a.tar.gz gitea-5b958315c19ab686f351068681631e19eebd1d9a.zip |
API: Make BasicAuth Prefix case insensitive (#14106)
Diffstat (limited to 'modules/auth')
-rw-r--r-- | modules/auth/sso/basic.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/sso/basic.go b/modules/auth/sso/basic.go index b5885d38db..aab4eceebc 100644 --- a/modules/auth/sso/basic.go +++ b/modules/auth/sso/basic.go @@ -56,7 +56,7 @@ func (b *Basic) VerifyAuthData(ctx *macaron.Context, sess session.Store) *models } auths := strings.Fields(baHead) - if len(auths) != 2 || auths[0] != "Basic" { + if len(auths) != 2 || (auths[0] != "Basic" && auths[0] != "basic") { return nil } |