diff options
author | Daiki Ueno <dueno@src.gnome.org> | 2018-03-20 08:35:57 +0100 |
---|---|---|
committer | Daiki Ueno <dueno@src.gnome.org> | 2018-03-20 09:51:13 +0100 |
commit | b70a10e0953a7e0a13ca3705677aa974451e2fa1 (patch) | |
tree | 40506a9b6ed4abddcda40b71933f9d809c70cfbb /daemon | |
parent | afbdb0a04b3c737003a3dc0cec0095ba0c2256c2 (diff) | |
download | gnome-keyring-b70a10e0953a7e0a13ca3705677aa974451e2fa1.tar.gz |
login: Use the same label as before when storing password
https://bugzilla.gnome.org/show_bug.cgi?id=794500
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/login/gkd-login-interaction.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon/login/gkd-login-interaction.c b/daemon/login/gkd-login-interaction.c index 9abdd43c..77701bed 100644 --- a/daemon/login/gkd-login-interaction.c +++ b/daemon/login/gkd-login-interaction.c @@ -29,6 +29,7 @@ #include "gkd-login.h" #include "egg/egg-secure-memory.h" +#include <glib/gi18n.h> #include <string.h> static const gchar *XDG_SCHEMA = "xdg:schema"; @@ -175,17 +176,20 @@ gkd_login_interaction_ask_password_finish (GTlsInteraction *interaction, const guchar *value; gsize length; gchar *password; + gchar *label; value = g_tls_password_get_value (G_TLS_PASSWORD (login_password), &length); password = egg_secure_strndup ((const gchar *)value, length); + label = g_strdup_printf (_("Unlock password for: %s"), self->label); gkd_login_store_passwordv (self->session, password, - self->label, + label, GCR_UNLOCK_OPTION_ALWAYS, -1, self->store_fields); egg_secure_free (password); + g_free (label); } return result; |