This commit is contained in:
2025-08-17 17:04:27 -04:00
parent f9f23f2d3f
commit 2eed0d9021
72 changed files with 2713 additions and 100 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"crypto/md5"
"fmt"
"maps"
"net/http"
"strings"
"time"
@@ -464,9 +465,7 @@ func (api *API) rotateAllAuthHashes(ctx context.Context) error {
}
// Transaction Succeeded -> Update Cache
for user, hash := range newAuthHashCache {
api.userAuthCache[user] = hash
}
maps.Copy(api.userAuthCache, newAuthHashCache)
return nil
}