mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 05:13:43 +00:00
feat: add auto login for bad user sessions
This commit is contained in:
@@ -174,7 +174,7 @@ func RequireLogin() {
|
||||
configFile, _ := GetConfigFile()
|
||||
|
||||
if configFile.LoggedInUserEmail == "" {
|
||||
PrintErrorMessageAndExit("You must be logged in to run this command. To login, run [infisical login]")
|
||||
EstablishUserLoginSession()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user