[gnome-boxes] vnc-display: Request new credentials after failed auth



commit 69da6b074e10460f2a1822dda8e5108993010854
Author: Visarion Alexandru <viorel visarion gmail com>
Date:   Thu Sep 1 15:40:35 2016 +0300

    vnc-display: Request new credentials after failed auth
    
    Currently, if the user attempts to authenticate and fails,
    we don't request credentials again, which results in the
    display appearing as connecting endlessly.
    
    Let's fix this by requesting different credentials whenever
    we find out that the previous ones weren't valid.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753153

 src/vnc-display.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/vnc-display.vala b/src/vnc-display.vala
index fb55103..2c37bd1 100644
--- a/src/vnc-display.vala
+++ b/src/vnc-display.vala
@@ -40,6 +40,9 @@ private class Boxes.VncDisplay: Boxes.Display {
 
         display.vnc_auth_failure.connect (() => {
             debug ("auth failure");
+
+            need_password = (password != null);
+            need_username = (username != null);
         });
         display.vnc_auth_unsupported.connect (() => {
             debug ("auth unsupported");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]