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

