[gnome-shell] authPrompt: allow cancellation before verification starts



commit 778ad49ab42cad936af7635436dbc3824200170f
Author: Ray Strode <rstrode redhat com>
Date:   Thu Jul 23 13:17:54 2015 -0400

    authPrompt: allow cancellation before verification starts
    
    The user should be allowed to cancel if verification hasn't
    started yet and they're typing in their username. This
    commit changes the authPrompt cancel function to not
    ignore such requests.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752739

 js/gdm/authPrompt.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 6e5c79f..b57b00b 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -501,7 +501,7 @@ const AuthPrompt = new Lang.Class({
     },
 
     cancel: function() {
-        if (this.verificationStatus == AuthPromptStatus.NOT_VERIFYING || this.verificationStatus == 
AuthPromptStatus.VERIFICATION_SUCCEEDED) {
+        if (this.verificationStatus == AuthPromptStatus.VERIFICATION_SUCCEEDED) {
             return;
         }
         this.reset();


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