[gvfs] goa: Pass "password" as ID when fetching the password
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] goa: Pass "password" as ID when fetching the password
- Date: Fri, 24 Oct 2014 05:16:49 +0000 (UTC)
commit 1ffad3a0eaf37381b57e65c09c66ef00ecc90505
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Oct 22 17:55:05 2014 +0200
goa: Pass "password" as ID when fetching the password
Passing GoaAccount:id to GetPassword makes no logical sense. It works
because it is ignored by GOA for ownCloud accounts.
The ID is meant as a key when an account might have multiple passwords.
eg., an email account can have separate passwords for IMAP and SMTP,
and the keys can be "imap-password", "smtp-password". This is not the
case for ownCloud and the ID field is ignored by GOA because the key
is always "password". Since ownCloud is the only password-based
account that this volume monitor supports, let's just use "password".
https://bugzilla.gnome.org/show_bug.cgi?id=739078
monitor/goa/goavolume.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/monitor/goa/goavolume.c b/monitor/goa/goavolume.c
index 7db021a..2aed256 100644
--- a/monitor/goa/goavolume.c
+++ b/monitor/goa/goavolume.c
@@ -244,7 +244,6 @@ ensure_credentials_cb (GObject *source_object, GAsyncResult *res, gpointer user_
GError *error;
GoaPasswordBased *passwd_based;
MountOp *data;
- const gchar *id;
self = G_VFS_GOA_VOLUME (g_async_result_get_source_object (G_ASYNC_RESULT (simple)));
data = g_async_result_get_user_data (G_ASYNC_RESULT (simple));
@@ -280,8 +279,7 @@ ensure_credentials_cb (GObject *source_object, GAsyncResult *res, gpointer user_
return;
}
- id = goa_account_get_id (account);
- goa_password_based_call_get_password (passwd_based, id, data->cancellable, get_password_cb, simple);
+ goa_password_based_call_get_password (passwd_based, "password", data->cancellable, get_password_cb,
simple);
}
/* ---------------------------------------------------------------------------------------------------- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]