Skip to content

Commit

Permalink
Merge pull request Versent#196 from taru-m/master
Browse files Browse the repository at this point in the history
Japanese correspondence of googleapps
  • Loading branch information
wolfeidau authored Jul 14, 2018
2 parents 3e1f4f9 + f928ce3 commit df1430a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/provider/googleapps/googleapps.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ func (kc *Client) loadChallengePage(submitURL string, referer string, authForm u
}

secondFactorHeader := "This extra step shows it’s really you trying to sign in"
secondFactorHeaderJp := "2 段階認証プロセス"

// have we been asked for 2-Step Verification
if extractNodeText(doc, "h2", secondFactorHeader) != "" {
if extractNodeText(doc, "h2", secondFactorHeader) != "" ||
extractNodeText(doc, "h1", secondFactorHeaderJp) != "" {

responseForm, secondActionURL, err := extractInputsByFormID(doc, "challenge")
if err != nil {
Expand Down

0 comments on commit df1430a

Please sign in to comment.