[gnome-keyring] login: Use the same label as before when storing password
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] login: Use the same label as before when storing password
- Date: Tue, 20 Mar 2018 08:51:33 +0000 (UTC)
commit b70a10e0953a7e0a13ca3705677aa974451e2fa1
Author: Daiki Ueno <dueno src gnome org>
Date: Tue Mar 20 08:35:57 2018 +0100
login: Use the same label as before when storing password
https://bugzilla.gnome.org/show_bug.cgi?id=794500
daemon/login/gkd-login-interaction.c | 6 +++++-
po/POTFILES.in | 1 +
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/daemon/login/gkd-login-interaction.c b/daemon/login/gkd-login-interaction.c
index 9abdd43..77701be 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;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 88aaeda..0c9cd4b 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -7,6 +7,7 @@ daemon/gnome-keyring-pkcs11.desktop.in.in
daemon/gnome-keyring-secrets.desktop.in.in
daemon/gnome-keyring-ssh.desktop.in.in
daemon/login/gkd-login.c
+daemon/login/gkd-login-interaction.c
daemon/ssh-agent/gkd-ssh-agent-interaction.c
daemon/ssh-agent/gkd-ssh-agent-service.c
egg/dotlock.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]