Skip to content

Commit

Permalink
Japanese correspondence of googleapps
Browse files Browse the repository at this point in the history
  • Loading branch information
tarumzu committed Jul 13, 2018
1 parent 3e1f4f9 commit f928ce3
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 f928ce3

Please sign in to comment.