Auth: change the error HTTP status codes (#18584)
* Auth: change the error HTTP status codes * Use 407 HTTP status code for incorrect credentials error * Improve proxy auth logs * Remove no longer needed TODO comment Fixes #18439
This commit is contained in:
@@ -238,7 +238,6 @@ func (auth *AuthProxy) LoginViaLDAP() (int64, *Error) {
|
||||
}
|
||||
|
||||
// LoginViaHeader logs in user from the header only
|
||||
// TODO: refactor - cyclomatic complexity should be much lower
|
||||
func (auth *AuthProxy) LoginViaHeader() (int64, error) {
|
||||
extUser := &models.ExternalUserInfo{
|
||||
AuthModule: "authproxy",
|
||||
|
||||
Reference in New Issue
Block a user