[gnome-online-accounts/gnome-3-24] google: Update is_identity_node to match the web UI



commit 845799bb75d92349384f4eace6ba378c2902d01e
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Jun 12 18:26:57 2017 +0200

    google: Update is_identity_node to match the web UI
    
    Google recently updated their web authentication UI. The ID and name
    of the identity node has changed.

 src/goabackend/goagoogleprovider.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/goabackend/goagoogleprovider.c b/src/goabackend/goagoogleprovider.c
index 05a0d2e..295cde2 100644
--- a/src/goabackend/goagoogleprovider.c
+++ b/src/goabackend/goagoogleprovider.c
@@ -281,11 +281,11 @@ is_identity_node (GoaOAuth2Provider *oauth2_provider, WebKitDOMHTMLInputElement
     goto out;
 
   id = webkit_dom_element_get_id (WEBKIT_DOM_ELEMENT (element));
-  if (g_strcmp0 (id, "Email") != 0)
+  if (g_strcmp0 (id, "identifierId") != 0)
     goto out;
 
   name = webkit_dom_html_input_element_get_name (element);
-  if (g_strcmp0 (name, "Email") != 0)
+  if (g_strcmp0 (name, "identifier") != 0)
     goto out;
 
   ret = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]