Skip to content

Commit 61e1293

Browse files
committed
no shell, don't ask
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 70593ff commit 61e1293

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/network.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ func getResponseBooleanValue(response map[string]interface{}, key string) (bool,
8484
}
8585

8686
func checkLogin2FAPromptAndValidate(r *Request, response map[string]interface{}, sessionKey string) error {
87+
if !r.Config.HasShell {
88+
return nil
89+
}
8790
config.Debug("Checking if 2FA is enabled and verified for the user ", response)
8891
found, is2faEnabled := getResponseBooleanValue(response, "is2faenabled")
8992
if !found || !is2faEnabled {

0 commit comments

Comments
 (0)