primeros cambios hechos para tener el multitenant

This commit is contained in:
fede committed 2026-11-10 17:06:56 -03:00
1 parent 34ad4424f9
commit 4e082e8767
132 files changed
+6202 -762

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
package services
import (
"crypto/rand"
"encoding/hex"
)
// GenerarPasswordTemporal devuelve una clave aleatoria de 18 caracteres.
func GenerarPasswordTemporal() (string, error) {
bytes := make([]byte, 9)
if _, err := rand.Read(bytes); err != nil {
return "", err
}
return hex.EncodeToString(bytes), nil
}