Revision 95bf51b...
Go back to digest for 6th April 2014Features in KDE Base
Martin Gräßlin committed changes in [plasma-workspace] /:
Add password checking to screenlocker
A new Authenticator item is introduced and exported to QML. It provides
a slot tryAuthenticate taking the password as a string. If invoked it
creates a KCheckPass object which handles the communication with the
kcheckpass binary to verify the password. If the authentication succeeded
the Authenticator emits a succeeded() signal, on failure a failed()
signal.
The authentication process is bound to a grace timer. While this timer is
active it's not possible to authenticate again. This state is exposed
with a Q_PROPERTY and used by the UI to disable the password field and
unlock button.
REVIEW: 117321
File Changes
Added 5 files
- /screenlocker/greeter
- ksmserver/authenticator.cpp
- ksmserver/authenticator.h
- ksmserver/autotests/authenticatortest.cpp
- ksmserver/autotests/CMakeLists.txt
- ksmserver/autotests/fakekcheckpass.c
Modified 5 files
- ksmserver/config-ksmserver.h.cmake
- ksmserver/screenlocker/greeter/CMakeLists.txt
- ksmserver/screenlocker/greeter/greeterapp.cpp
- ksmserver/screenlocker/greeter/greeterapp.h
- ksmserver/screenlocker/greeter/themes/org.kde.passworddialog/contents/ui/Greeter.qml
10 files changed in total