Skip to content

Commit

Permalink
Update OTP check
Browse files Browse the repository at this point in the history
  • Loading branch information
tillson committed Apr 12, 2023
1 parent c8daed6 commit fe1986a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func LoginToGitHub(credentials GitHubCredentials) (httpClient *http.Client, err
if strings.Index(dataStr, "Incorrect username or password.") > -1 {
return nil, fmt.Errorf("Incorrect username or password.")
}
if strings.Index(dataStr, "name=\"otp\"") > -1 {
if strings.Index(dataStr, "app_otp") > -1 {
csrf, err = GrabCSRFTokenBody(dataStr)
if err != nil {
return nil, err
Expand Down

0 comments on commit fe1986a

Please sign in to comment.