[gnome-shell/benzea/fix-password-login-after-bg-failure] gdm: Only emit verification failed for foreground service




commit 0074c6870b284578d25c06b61ab8011cf8bbb8da
Author: Benjamin Berg <bberg redhat com>
Date:   Fri Apr 23 19:44:52 2021 +0200

    gdm: Only emit verification failed for foreground service
    
    A failing background service should not count as a verification failure
    as the user can still try to continue using the current foreground
    service.
    
    As such, only emit the 'verification-failed' signal when the failing
    service was the foreground service.
    
    Closes: #3853

 js/gdm/util.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index 1ee84acde2..e7e575dba4 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -721,7 +721,8 @@ var ShellUserVerifier = class {
             }
         }
 
-        this.emit('verification-failed', serviceName, canRetry);
+        if (this.serviceIsForeground(serviceName))
+            this.emit('verification-failed', serviceName, canRetry);
     }
 
     _onServiceUnavailable(_client, serviceName, errorMessage) {


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