v0.1.35: лимит очередей JWT-тенантов 50, обновление лимита при логине

This commit is contained in:
“Naeel”
2026-08-14 16:51:12 +04:00
parent fa237204f0
commit 0b56677363
3 changed files with 43 additions and 1 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ func (h *Handler) jwtAuth(w http.ResponseWriter, r *http.Request) {
// Auto-provisioning: тенант и ключи детерминированы из email.
// Токен — только аутентификация; ключи в ответ не возвращаем (GET /ui/api/credentials).
t, err := h.store.CreateFromJWT(claims.Sub, claims.Email, 10)
t, err := h.store.CreateFromJWT(claims.Sub, claims.Email, tenant.DefaultTenantMaxQueues)
if err != nil {
log.Errorf("jwt auth: failed to create tenant: %v", err)
jsonErr(w, http.StatusInternalServerError, "failed to provision tenant")