mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 02:26:19 +00:00
minor changes
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
|||||||
|
|
||||||
var userCmd = &cobra.Command{
|
var userCmd = &cobra.Command{
|
||||||
Use: "user",
|
Use: "user",
|
||||||
Short: "Used manage user credentials",
|
Short: "Used to manage user credentials",
|
||||||
DisableFlagsInUseLine: true,
|
DisableFlagsInUseLine: true,
|
||||||
Example: "infisical user",
|
Example: "infisical user",
|
||||||
Args: cobra.ExactArgs(0),
|
Args: cobra.ExactArgs(0),
|
||||||
@@ -143,7 +143,7 @@ var domainCmd = &cobra.Command{
|
|||||||
//check if profile in logged in profiles
|
//check if profile in logged in profiles
|
||||||
|
|
||||||
//if not add new profile loggedInUsers
|
//if not add new profile loggedInUsers
|
||||||
//else update profile from loggedinUsers list
|
//else update profile from loggedinUsers slice
|
||||||
ok := util.ConfigContainsEmail(configFile.LoggedInUsers, profile)
|
ok := util.ConfigContainsEmail(configFile.LoggedInUsers, profile)
|
||||||
if !ok {
|
if !ok {
|
||||||
configFile.LoggedInUsers = append(configFile.LoggedInUsers, models.LoggedInUser{
|
configFile.LoggedInUsers = append(configFile.LoggedInUsers, models.LoggedInUser{
|
||||||
|
|||||||
@@ -88,10 +88,10 @@ func GetCurrentLoggedInUserDetails() (LoggedInUserDetails, error) {
|
|||||||
SetAuthToken(userCreds.JTWToken).
|
SetAuthToken(userCreds.JTWToken).
|
||||||
SetHeader("Accept", "application/json")
|
SetHeader("Accept", "application/json")
|
||||||
|
|
||||||
|
config.INFISICAL_URL_MANUAL_OVERRIDE = config.INFISICAL_URL
|
||||||
//configFile.LoggedInUserDomain
|
//configFile.LoggedInUserDomain
|
||||||
//if not empty set as infisical url
|
//if not empty set as infisical url
|
||||||
if configFile.LoggedInUserDomain != "" {
|
if configFile.LoggedInUserDomain != "" {
|
||||||
config.INFISICAL_URL_MANUAL_OVERRIDE = config.INFISICAL_URL
|
|
||||||
config.INFISICAL_URL = configFile.LoggedInUserDomain
|
config.INFISICAL_URL = configFile.LoggedInUserDomain
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user