summaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2014-10-22 17:55:05 +0200
committerDebarshi Ray <debarshir@gnome.org>2014-10-24 07:16:39 +0200
commit1ffad3a0eaf37381b57e65c09c66ef00ecc90505 (patch)
tree1a5ddc2461bfd2435d60532d462f99ae85439870 /monitor
parentb311211d4b1eb9c9129bbf601772435d16b56259 (diff)
downloadgvfs-1ffad3a0eaf37381b57e65c09c66ef00ecc90505.tar.gz
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
Diffstat (limited to 'monitor')
-rw-r--r--monitor/goa/goavolume.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/monitor/goa/goavolume.c b/monitor/goa/goavolume.c
index 7db021a2..2aed2567 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);
}
/* ---------------------------------------------------------------------------------------------------- */