Include username in response header (for use by nginx auth_request)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f54f54e538
commit
e9019026ff
1 changed files with 1 additions and 0 deletions
1
login.go
1
login.go
|
@ -57,6 +57,7 @@ func httpBasicAuth(w http.ResponseWriter, r *http.Request) {
|
|||
w.WriteHeader(http.StatusUnauthorized)
|
||||
w.Write([]byte(err.Error()))
|
||||
} else {
|
||||
w.Header().Set("X-Remote-User", user)
|
||||
w.WriteHeader(http.StatusOK)
|
||||
for _, e := range entries {
|
||||
for _, v := range e.Values {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue