[gnome-initial-setup] password: set keyring password enterprise accounts too
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] password: set keyring password enterprise accounts too
- Date: Fri, 1 Jun 2018 13:34:18 +0000 (UTC)
commit 28e98ae1102051226a22bf21259319d7ba17ad19
Author: Renaud “和彦” Lepage <root cybikbase com>
Date: Wed May 23 15:00:04 2018 +0000
password: set keyring password enterprise accounts too
At the moment enteprise accounts end up with a keyring password
of "gis" because they return early from the password page, before
the keyring password updating code has an opportunity to run.
This commit fixes the code to update the keyring password for
enterprise accounts before returning on the password page.
gnome-initial-setup/pages/password/gis-password-page.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gnome-initial-setup/pages/password/gis-password-page.c
b/gnome-initial-setup/pages/password/gis-password-page.c
index ea2415f..95281c5 100644
--- a/gnome-initial-setup/pages/password/gis-password-page.c
+++ b/gnome-initial-setup/pages/password/gis-password-page.c
@@ -75,18 +75,21 @@ gis_password_page_save_data (GisPage *gis_page)
GisPasswordPagePrivate *priv = gis_password_page_get_instance_private (page);
ActUser *act_user;
UmAccountMode account_mode;
- const gchar *password;
+ const gchar *password = NULL;
if (gis_page->driver == NULL)
return;
account_mode = gis_driver_get_account_mode (gis_page->driver);
- if (account_mode == UM_ENTERPRISE)
- return;
-
gis_driver_get_user_permissions (gis_page->driver, &act_user, &password);
+ if (account_mode == UM_ENTERPRISE) {
+ if (password != NULL)
+ gis_update_login_keyring_password (password);
+ return;
+ }
+
password = gtk_entry_get_text (GTK_ENTRY (priv->password_entry));
if (strlen (password) == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]