[plasma/plasma-login-manager] src/frontend/greeter/qml: frontend/greeter: Clear password on login failure

Oliver Beard <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit fd2b7d056bf832376446cbc94ee7db721a25418c by Oliver Beard.
Committed on 23/07/2026 at 15:50.
Pushed by olib into branch 'master'.

frontend/greeter: Clear password on login failure

As in kscreenlocker!

M  +4    -0    src/frontend/greeter/qml/GreeterState.qml

https://invent.kde.org/plasma/plasma-login-manager/-/commit/fd2b7d056bf832376446cbc94ee7db721a25418c

diff --git a/src/frontend/greeter/qml/GreeterState.qml b/src/frontend/greeter/qml/GreeterState.qml
index 0bf3b216..f3233e14 100644
--- a/src/frontend/greeter/qml/GreeterState.qml
+++ b/src/frontend/greeter/qml/GreeterState.qml
@@ -219,5 +219,9 @@ Item {
             setLastLoggedInSessionForUser(greeterState.lastLoggedInUser, greeterState.lastLoggedInSession);
             PlasmaLogin.StateConfig.save();
         }
+
+        function onLoginFailed() {
+            clearPasswords();
+        }
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.