Redeem invite only when incoming user was invited (#1861)

checks for users with pending invite status in the cache that already logged in and refresh the cache
This commit is contained in:
Maycon Santos
2024-04-22 11:10:27 +02:00
committed by GitHub
parent 9e01155d2e
commit a80c8b0176
6 changed files with 41 additions and 16 deletions

View File

@@ -198,8 +198,6 @@ func (h *UsersHandler) GetAllUsers(w http.ResponseWriter, r *http.Request) {
serviceUser := r.URL.Query().Get("service_user")
log.Debugf("UserCount: %v", len(data))
users := make([]*api.User, 0)
for _, r := range data {
if r.NonDeletable {