After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 661640 - Can't update the password of a Google account added with gnome-online-accounts
Can't update the password of a Google account added with gnome-online-accounts
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Accounts
unspecified
Other Linux
: Normal minor
: 3.4
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2011-10-13 09:29 UTC by Martin Richard
Modified: 2011-11-24 11:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
I can't update my account from empathy (32.58 KB, image/png)
2011-10-13 09:29 UTC, Martin Richard
  Details
password-dialog: use self->priv pattern (11.58 KB, patch)
2011-11-02 14:01 UTC, Guillaume Desmottes
committed Details | Review
Abstract EmpathyPasswordDialog to EmpathyBasePasswordDialog (22.97 KB, patch)
2011-11-02 14:01 UTC, Guillaume Desmottes
committed Details | Review
server-sasl-handler: add auth-password-failed signal (2.03 KB, patch)
2011-11-02 14:01 UTC, Guillaume Desmottes
committed Details | Review
auth-factory: relay the auth-password-failed signal (2.17 KB, patch)
2011-11-02 14:01 UTC, Guillaume Desmottes
committed Details | Review
add empathy-bad-password-dialog (10.40 KB, patch)
2011-11-02 14:02 UTC, Guillaume Desmottes
reviewed Details | Review
Allow user to try another password if auth failed (6.47 KB, patch)
2011-11-02 14:02 UTC, Guillaume Desmottes
none Details | Review
Allow user to try another password if auth failed (6.78 KB, patch)
2011-11-10 14:43 UTC, Guillaume Desmottes
committed Details | Review
add empathy-bad-password-dialog (10.42 KB, patch)
2011-11-23 12:36 UTC, Guillaume Desmottes
committed Details | Review

Description Martin Richard 2011-10-13 09:29:07 UTC
Created attachment 198917 [details]
I can't update my account from empathy

I linked my Google Account to Gnome shell (gnome-online-accounts), my password is not stored by gnome-online-accounts. When I want to chat with empathy, it requires me to provide my password for this account in a small dialog box.

I changed my google account password, empathy can't reconnect because the stored password is erroneous. Empathy suggests me to update my password in the Accounts management panel, but I can't manage this account from Empathy, nor update my password.
Comment 1 Guillaume Desmottes 2011-10-13 20:33:26 UTC
Right that's a nasty side effect of Empathy not being able to use the auth token from GOA.
Comment 2 Guillaume Desmottes 2011-10-28 11:27:35 UTC
I think the right answer for this problem is to display a dialog offering to enter a new password when we get a Authentication_Failed error.
Comment 3 Guillaume Desmottes 2011-11-02 14:01:51 UTC
Created attachment 200507 [details] [review]
password-dialog: use self->priv pattern
Comment 4 Guillaume Desmottes 2011-11-02 14:01:54 UTC
Created attachment 200508 [details] [review]
Abstract EmpathyPasswordDialog to EmpathyBasePasswordDialog

I'm going to implement a slidely different version of this dialog so best to
re-use as much code as possible.
Comment 5 Guillaume Desmottes 2011-11-02 14:01:56 UTC
Created attachment 200509 [details] [review]
server-sasl-handler: add auth-password-failed signal
Comment 6 Guillaume Desmottes 2011-11-02 14:01:59 UTC
Created attachment 200510 [details] [review]
auth-factory: relay the auth-password-failed signal
Comment 7 Guillaume Desmottes 2011-11-02 14:02:01 UTC
Created attachment 200511 [details] [review]
add empathy-bad-password-dialog
Comment 8 Guillaume Desmottes 2011-11-02 14:02:04 UTC
Created attachment 200512 [details] [review]
Allow user to try another password if auth failed
Comment 9 Guillaume Desmottes 2011-11-10 14:43:47 UTC
Created attachment 201157 [details] [review]
Allow user to try another password if auth failed
Comment 10 Danielle Madeley 2011-11-23 02:49:04 UTC
Review of attachment 200507 [details] [review]:

++
Comment 11 Danielle Madeley 2011-11-23 03:55:26 UTC
Review of attachment 200508 [details] [review]:

++
Comment 12 Danielle Madeley 2011-11-23 03:56:06 UTC
Review of attachment 200509 [details] [review]:

++
Comment 13 Danielle Madeley 2011-11-23 03:56:45 UTC
Review of attachment 200510 [details] [review]:

++
Comment 14 Danielle Madeley 2011-11-23 04:00:40 UTC
Review of attachment 200511 [details] [review]:

::: libempathy-gtk/empathy-bad-password-dialog.c
@@ +89,3 @@
+
+static void
+empathy_bad_password_dialog_dispose (GObject *object)

Technically things that aren't object refs belong in finalize().

@@ +129,3 @@
+
+  text = g_strdup_printf (_("Authentification failed for account\n<b>%s</b>"),
+      tp_account_get_display_name (base->account));

Sceptical of this \n, how does it get translated for languages where the account name wouldn't be last?

@@ +184,3 @@
+    const gchar *password)
+{
+  g_assert (TP_IS_ACCOUNT (account));

I think this should be g_return_val_if_fail()
Comment 15 Danielle Madeley 2011-11-23 04:02:34 UTC
Review of attachment 201157 [details] [review]:

++
Comment 16 Guillaume Desmottes 2011-11-23 12:17:36 UTC
Review of attachment 200511 [details] [review]:

::: libempathy-gtk/empathy-bad-password-dialog.c
@@ +89,3 @@
+
+static void
+empathy_bad_password_dialog_dispose (GObject *object)

changed.

@@ +129,3 @@
+
+  text = g_strdup_printf (_("Authentification failed for account\n<b>%s</b>"),
+      tp_account_get_display_name (base->account));

good point; I removed it.

@@ +184,3 @@
+    const gchar *password)
+{
+  g_assert (TP_IS_ACCOUNT (account));

changed.
Comment 17 Guillaume Desmottes 2011-11-23 12:36:11 UTC
Created attachment 201993 [details] [review]
add empathy-bad-password-dialog
Comment 18 Danielle Madeley 2011-11-24 06:32:54 UTC
++
Comment 19 Guillaume Desmottes 2011-11-24 11:20:01 UTC
Attachment 200507 [details] pushed as adca8bd - password-dialog: use self->priv pattern
Attachment 200508 [details] pushed as 80ff667 - Abstract EmpathyPasswordDialog to EmpathyBasePasswordDialog
Attachment 200509 [details] pushed as e2df01b - server-sasl-handler: add auth-password-failed signal
Attachment 200510 [details] pushed as e981a10 - auth-factory: relay the auth-password-failed signal
Attachment 201157 [details] pushed as 9389308 - Allow user to try another password if auth failed
Attachment 201993 [details] pushed as 7f75f25 - add empathy-bad-password-dialog