Final tweaks to auth proxy feature

This commit is contained in:
Torkel Ödegaard
2015-05-02 12:30:53 +02:00
parent be589d81c7
commit 38fc85d619
4 changed files with 16 additions and 7 deletions
+3 -1
View File
@@ -12,7 +12,7 @@ func initContextWithAuthProxy(ctx *Context) bool {
}
proxyHeaderValue := ctx.Req.Header.Get(setting.AuthProxyHeaderName)
if len(proxyHeaderValue) <= 0 {
if len(proxyHeaderValue) == 0 {
return false
}
@@ -34,6 +34,8 @@ func initContextWithAuthProxy(ctx *Context) bool {
ctx.Handle(500, "Failed find user after creation", err)
return true
}
} else {
return false
}
}