mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 07:28:21 +00:00
host API support for login and switch commands
This commit is contained in:
@@ -9,6 +9,8 @@ import (
|
||||
"os/exec"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
"github.com/Infisical/infisical-merge/packages/models"
|
||||
)
|
||||
|
||||
type DecodedSymmetricEncryptionDetails = struct {
|
||||
@@ -61,9 +63,9 @@ func IsSecretTypeValid(s string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func Contains(iter []string, elem string) bool {
|
||||
func ConfigContainsEmail(iter []models.LoggedInUser, elem string) bool {
|
||||
for _, value := range iter {
|
||||
if value == elem {
|
||||
if value.Email == elem {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user