Skip to content

Commit

Permalink
refac: remove unused comment
Browse files Browse the repository at this point in the history
  • Loading branch information
navetacandra committed Oct 7, 2024
1 parent 02ee3e4 commit c4a3cd7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ func serviceRpc(hr HandlerReq) {
username, password, authok := r.BasicAuth()
user := FindUser(username)
if authok {
// Check is user has access to repository
if user.Username != "" && user.Password != "" {
requestRepo := strings.Replace(dir, DefaultConfig.ProjectRoot, "", 1)
allow := false
Expand Down Expand Up @@ -242,7 +241,6 @@ func getInfoRefs(hr HandlerReq) {
return
}

// Check user credential
user := FindUser(username)
if authok && !(username == user.Username && password == user.Password) {
w.WriteHeader(http.StatusUnauthorized)
Expand Down

0 comments on commit c4a3cd7

Please sign in to comment.