Force card logins to authenticate against the username specified in the card certificate

pull/2/head
Timothy Pearson 8 years ago
parent d5feffdec9
commit 1757afecf6

@ -639,12 +639,13 @@ KGreeter::slotUserEntered()
{ {
if (userView) { if (userView) {
TQListViewItem *item; TQListViewItem *item;
for (item = userView->firstChild(); item; item = item->nextSibling()) for (item = userView->firstChild(); item; item = item->nextSibling()) {
if (((UserListViewItem *)item)->login == curUser) { if (((UserListViewItem *)item)->login == curUser) {
userView->setSelected( item, true ); userView->setSelected( item, true );
userView->ensureItemVisible( item ); userView->ensureItemVisible( item );
goto oke; goto oke;
} }
}
userView->clearSelection(); userView->clearSelection();
} }
oke: oke:
@ -915,6 +916,7 @@ void KGreeter::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) {
if (!user_active && vt_active) { if (!user_active && vt_active) {
// Select the correct user // Select the correct user
verify->setUser(login_name); verify->setUser(login_name);
userView->setEnabled(false);
verifySetUser(login_name); verifySetUser(login_name);
verify->lockUserEntry(true); verify->lockUserEntry(true);
@ -936,6 +938,7 @@ void KGreeter::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) {
void KGreeter::cryptographicCardRemoved(TDECryptographicCardDevice* cdevice) { void KGreeter::cryptographicCardRemoved(TDECryptographicCardDevice* cdevice) {
cardLoginUser = TQString::null; cardLoginUser = TQString::null;
userView->setEnabled(false);
verify->lockUserEntry(false); verify->lockUserEntry(false);
verify->requestAbort(); verify->requestAbort();
verify->setPasswordPrompt(TQString::null); verify->setPasswordPrompt(TQString::null);

@ -323,8 +323,10 @@ KGVerify::start()
if (!_autoLoginAgain) if (!_autoLoginAgain)
_autoLoginDelay = 0, timeable = false; _autoLoginDelay = 0, timeable = false;
return; return;
} else }
else if (!cardLoginInProgress) {
applyPreset(); applyPreset();
}
} }
running = true; running = true;
Debug( "%s->start()\n", pName.data() ); Debug( "%s->start()\n", pName.data() );

Loading…
Cancel
Save