We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70593ff commit 61e1293Copy full SHA for 61e1293
1 file changed
cmd/network.go
@@ -84,6 +84,9 @@ func getResponseBooleanValue(response map[string]interface{}, key string) (bool,
84
}
85
86
func checkLogin2FAPromptAndValidate(r *Request, response map[string]interface{}, sessionKey string) error {
87
+ if !r.Config.HasShell {
88
+ return nil
89
+ }
90
config.Debug("Checking if 2FA is enabled and verified for the user ", response)
91
found, is2faEnabled := getResponseBooleanValue(response, "is2faenabled")
92
if !found || !is2faEnabled {
0 commit comments