[gnome-boxes/vnc-notify-auth-failure: 1/2] machine: Dismiss auth_notification when authentication failed
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/vnc-notify-auth-failure: 1/2] machine: Dismiss auth_notification when authentication failed
- Date: Mon, 16 Dec 2019 14:48:08 +0000 (UTC)
commit bda3d63af49e258013a7f03f06a31cf80584e19a
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Dec 16 14:56:18 2019 +0100
machine: Dismiss auth_notification when authentication failed
This way users can attempt to enter credentials again after a failed
attempt.
Fixes #446
src/machine.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/machine.vala b/src/machine.vala
index 60b3def6..9ec28537 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -750,6 +750,9 @@ private async void delete_auth_credentials () {
try {
yield Secret.password_clear (secret_auth_schema, null,
"gnome-boxes-machine-uuid", config.uuid);
+
+ auth_notification.dismiss ();
+ auth_notification = null;
} catch (GLib.Error error) {
debug ("Failed to delete credentials for machine %s: %s", config.uuid, error.message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]