diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-09-22 20:26:55 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-09-22 20:27:19 -0500 |
commit | 1757afecf639d23eb03a22104a71716c85bec23e (patch) | |
tree | 3a45994a9b91ec36265c9b66fecaccd95b1e885b /tdm/kfrontend/kgreeter.cpp | |
parent | d5feffdec9e2380f9dd590607a71669dd772e319 (diff) | |
download | tdebase-1757afecf639d23eb03a22104a71716c85bec23e.tar.gz tdebase-1757afecf639d23eb03a22104a71716c85bec23e.zip |
Force card logins to authenticate against the username specified in the card certificate
Diffstat (limited to 'tdm/kfrontend/kgreeter.cpp')
-rw-r--r-- | tdm/kfrontend/kgreeter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tdm/kfrontend/kgreeter.cpp b/tdm/kfrontend/kgreeter.cpp index 6ce76ebf3..a42ffd0ac 100644 --- a/tdm/kfrontend/kgreeter.cpp +++ b/tdm/kfrontend/kgreeter.cpp @@ -639,12 +639,13 @@ KGreeter::slotUserEntered() { if (userView) { TQListViewItem *item; - for (item = userView->firstChild(); item; item = item->nextSibling()) + for (item = userView->firstChild(); item; item = item->nextSibling()) { if (((UserListViewItem *)item)->login == curUser) { userView->setSelected( item, true ); userView->ensureItemVisible( item ); goto oke; } + } userView->clearSelection(); } oke: @@ -915,6 +916,7 @@ void KGreeter::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) { if (!user_active && vt_active) { // Select the correct user verify->setUser(login_name); + userView->setEnabled(false); verifySetUser(login_name); verify->lockUserEntry(true); @@ -936,6 +938,7 @@ void KGreeter::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) { void KGreeter::cryptographicCardRemoved(TDECryptographicCardDevice* cdevice) { cardLoginUser = TQString::null; + userView->setEnabled(false); verify->lockUserEntry(false); verify->requestAbort(); verify->setPasswordPrompt(TQString::null); |