File: upstream_d12eaa3a_sddm-theme-clear-password-when-selecting-a-different-user.patch

package info (click to toggle)
plasma-desktop 4%3A6.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 61,044 kB
  • sloc: cpp: 37,691; ansic: 2,617; python: 1,386; javascript: 1,163; xml: 1,082; sh: 128; makefile: 16
file content (29 lines) | stat: -rw-r--r-- 906 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From d12eaa3a7097f99bec7a16b4bcfeef6dc1577f31 Mon Sep 17 00:00:00 2001
From: Nate Graham <nate@kde.org>
Date: Fri, 11 Apr 2025 14:35:34 -0600
Subject: [PATCH] sddm-theme: clear password when selecting a different user

Users don't have the same passwords, so it doesn't serve any purpose to
keep anything in the password field when the selected user changes.

BUG: 502514
FIXED-IN: 6.4.0
---
 sddm-theme/Login.qml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sddm-theme/Login.qml b/sddm-theme/Login.qml
index 22751b01e4..68d9708043 100644
--- a/sddm-theme/Login.qml
+++ b/sddm-theme/Login.qml
@@ -35,6 +35,7 @@ SessionManagementScreen {
         // Don't startLogin() here, because the signal is connected to the
         // Escape key as well, for which it wouldn't make sense to trigger
         // login.
+        passwordBox.clear()
         focusFirstVisibleFormControl();
     }
 
-- 
GitLab