From f928ce3ef57347db850feab71c854e71aed0b422 Mon Sep 17 00:00:00 2001 From: taru-m Date: Fri, 13 Jul 2018 15:01:47 +0900 Subject: [PATCH] Japanese correspondence of googleapps --- pkg/provider/googleapps/googleapps.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/provider/googleapps/googleapps.go b/pkg/provider/googleapps/googleapps.go index 5fb6ad365..266e8b3da 100644 --- a/pkg/provider/googleapps/googleapps.go +++ b/pkg/provider/googleapps/googleapps.go @@ -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 {