Skip to content

Commit

Permalink
add Password to git login user
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeinated92 committed Sep 30, 2024
1 parent 12fbf98 commit 38f8091
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ func (repman *ReplicationManager) loginHandler(w http.ResponseWriter, r *http.Re
}

u.GitToken = token
u.Password = user.Password // Now using git-login has no profile so must use password for check
cluster.APIUsers[user.Username] = u
}
} else if !cluster.IsValidACL(user.Username, user.Password, r.URL.Path, "password") {
Expand Down

0 comments on commit 38f8091

Please # to comment.