We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02ee3e4 commit c4a3cd7Copy full SHA for c4a3cd7
server/server.go
@@ -135,7 +135,6 @@ func serviceRpc(hr HandlerReq) {
135
username, password, authok := r.BasicAuth()
136
user := FindUser(username)
137
if authok {
138
- // Check is user has access to repository
139
if user.Username != "" && user.Password != "" {
140
requestRepo := strings.Replace(dir, DefaultConfig.ProjectRoot, "", 1)
141
allow := false
@@ -242,7 +241,6 @@ func getInfoRefs(hr HandlerReq) {
242
241
return
243
}
244
245
- // Check user credential
246
247
if authok && !(username == user.Username && password == user.Password) {
248
w.WriteHeader(http.StatusUnauthorized)
0 commit comments