mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 08:28:22 +00:00
Update root.go
This commit is contained in:
@@ -57,7 +57,7 @@ func init() {
|
|||||||
loggedInDetails, err := util.GetCurrentLoggedInUserDetails()
|
loggedInDetails, err := util.GetCurrentLoggedInUserDetails()
|
||||||
|
|
||||||
// If the user is logged in and their session is not expired, then we check if token auth is also being used concurrently.
|
// If the user is logged in and their session is not expired, then we check if token auth is also being used concurrently.
|
||||||
if err == nil && loggedInDetails.IsUserLoggedIn && !loggedInDetails.LoginExpired {
|
if !silent && err == nil && loggedInDetails.IsUserLoggedIn && !loggedInDetails.LoginExpired {
|
||||||
token, err := util.GetInfisicalToken(cmd)
|
token, err := util.GetInfisicalToken(cmd)
|
||||||
|
|
||||||
// If token auth is being used concurrently, we warn the user that the token will be used instead of the logged in user's credentials.
|
// If token auth is being used concurrently, we warn the user that the token will be used instead of the logged in user's credentials.
|
||||||
|
|||||||
Reference in New Issue
Block a user