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