mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 04:26:33 +00:00
remove addNewUserPrompt
This commit is contained in:
@@ -356,20 +356,6 @@ func getFreshUserCredentials(email string, password string) (*api.GetLoginOneV2R
|
|||||||
return &loginOneResponseResult, &loginTwoResponseResult, nil
|
return &loginOneResponseResult, &loginTwoResponseResult, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func addNewUserPrompt() (bool, error) {
|
|
||||||
prompt := promptui.Select{
|
|
||||||
Label: "A user is already logged in. Would you like to add a new user? Select[Yes/No]",
|
|
||||||
Items: []string{"No", "Yes"},
|
|
||||||
}
|
|
||||||
|
|
||||||
_, result, err := prompt.Run()
|
|
||||||
if err != nil {
|
|
||||||
return false, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return result == "Yes", err
|
|
||||||
}
|
|
||||||
|
|
||||||
func userLoginMenu(currentLoggedInUserEmail string) (bool, error) {
|
func userLoginMenu(currentLoggedInUserEmail string) (bool, error) {
|
||||||
prompt := promptui.Select{
|
prompt := promptui.Select{
|
||||||
Label: fmt.Sprintf("Current logged in user email: %s", currentLoggedInUserEmail),
|
Label: fmt.Sprintf("Current logged in user email: %s", currentLoggedInUserEmail),
|
||||||
|
|||||||
Reference in New Issue
Block a user