mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
update prompt selections to const
This commit is contained in:
@@ -284,7 +284,7 @@ func init() {
|
||||
}
|
||||
|
||||
func DomainOverridePrompt() (bool, error) {
|
||||
var (
|
||||
const (
|
||||
PRESET = "Use Domain"
|
||||
OVERRIDE = "Change Domain"
|
||||
)
|
||||
@@ -306,7 +306,7 @@ func DomainOverridePrompt() (bool, error) {
|
||||
|
||||
func askForDomain() error {
|
||||
//query user to choose between Infisical cloud or self hosting
|
||||
var (
|
||||
const (
|
||||
INFISICAL_CLOUD = "Infisical Cloud"
|
||||
SELF_HOSTING = "Self Hosting"
|
||||
)
|
||||
|
||||
@@ -39,7 +39,6 @@ func WriteInitalConfig(userCredentials *models.UserCredentials) error {
|
||||
}
|
||||
//if empty or if email not in loggedinUsers
|
||||
if len(existingConfigFile.LoggedInUsers) == 0 || !ConfigContainsEmail(existingConfigFile.LoggedInUsers, userCredentials.Email) {
|
||||
|
||||
existingConfigFile.LoggedInUsers = append(existingConfigFile.LoggedInUsers, loggedInUser)
|
||||
} else {
|
||||
//if exists update domain of loggedin users
|
||||
|
||||
Reference in New Issue
Block a user