[network-manager-applet/aleksander/mm1-applet: 6/13] applet: when auto-unlock with PIN fails, remove PIN from keyring
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/aleksander/mm1-applet: 6/13] applet: when auto-unlock with PIN fails, remove PIN from keyring
- Date: Sat, 12 Jan 2013 17:29:18 +0000 (UTC)
commit 5bf52aff64343a3fc5d0d7d81868f9654a0ea194
Author: Aleksander Morgado <aleksander lanedo com>
Date: Tue Dec 18 14:08:31 2012 +0100
applet: when auto-unlock with PIN fails, remove PIN from keyring
We need to remove the PIN from the keyring when auto-unlock try fails, even
before launching the dialog to ask for the PIN to the user. Otherwise, the user
may just close the dialog without entering the PIN, and the next times the
auto-unlock is tried using the same wrong PIN as before will end up failing and
ultimately locking the device asking for PUK.
src/applet-device-gsm.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/applet-device-gsm.c b/src/applet-device-gsm.c
index 6568ced..8ffe7fa 100644
--- a/src/applet-device-gsm.c
+++ b/src/applet-device-gsm.c
@@ -1052,6 +1052,10 @@ keyring_unlock_pin_reply (DBusGProxy *proxy, DBusGProxyCall *call, gpointer user
info->simid ? info->simid : "(unknown)",
dbus_g_error_get_name (error),
error->message);
+
+ /* Remove PIN from keyring right away */
+ mobile_helper_delete_pin_in_keyring (info->devid);
+
/* Ask the user */
unlock_dialog_new (info->device, info);
g_clear_error (&error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]