|
|
@ -546,9 +546,24 @@ void PasswordDlg::handleVerify()
|
|
|
|
// Reset password entry and change text
|
|
|
|
// Reset password entry and change text
|
|
|
|
greet->start();
|
|
|
|
greet->start();
|
|
|
|
greet->textPrompt( arr, false, false );
|
|
|
|
greet->textPrompt( arr, false, false );
|
|
|
|
|
|
|
|
|
|
|
|
// Force relayout
|
|
|
|
// Force relayout
|
|
|
|
setFixedSize( sizeHint().width(), sizeHint().height() + 1 );
|
|
|
|
setFixedSize( sizeHint().width(), sizeHint().height() + 1 );
|
|
|
|
setFixedSize( sizeHint() );
|
|
|
|
setFixedSize( sizeHint() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Check if cryptographic card login is being used
|
|
|
|
|
|
|
|
if (mCardLoginInProgress) {
|
|
|
|
|
|
|
|
// Attempt authentication if configured
|
|
|
|
|
|
|
|
TDECryptographicCardDevice* cdevice = static_cast<LockProcess*>(parent())->cryptographicCardDevice();
|
|
|
|
|
|
|
|
if (cdevice) {
|
|
|
|
|
|
|
|
TQString autoPIN = cdevice->autoPIN();
|
|
|
|
|
|
|
|
if (autoPIN != TQString::null) {
|
|
|
|
|
|
|
|
greet->setPassword(autoPIN);
|
|
|
|
|
|
|
|
TQTimer::singleShot(0, this, SLOT(slotOK()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mCardLoginInProgress = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
greet->textPrompt( arr, false, false );
|
|
|
|
greet->textPrompt( arr, false, false );
|
|
|
@ -971,21 +986,17 @@ void PasswordDlg::attemptCardLogin() {
|
|
|
|
setFixedSize(sizeHint().width(), sizeHint().height() + 1);
|
|
|
|
setFixedSize(sizeHint().width(), sizeHint().height() + 1);
|
|
|
|
setFixedSize(sizeHint());
|
|
|
|
setFixedSize(sizeHint());
|
|
|
|
|
|
|
|
|
|
|
|
// Attempt authentication if configured
|
|
|
|
// Bypass initial password prompt
|
|
|
|
TDECryptographicCardDevice* cdevice = static_cast<LockProcess*>(parent())->cryptographicCardDevice();
|
|
|
|
|
|
|
|
if (cdevice) {
|
|
|
|
|
|
|
|
TQString autoPIN = cdevice->autoPIN();
|
|
|
|
|
|
|
|
if (autoPIN != TQString::null) {
|
|
|
|
|
|
|
|
greet->start();
|
|
|
|
greet->start();
|
|
|
|
greet->setPassword(autoPIN);
|
|
|
|
greet->setPassword("");
|
|
|
|
TQTimer::singleShot(0, this, SLOT(slotOK()));
|
|
|
|
TQTimer::singleShot(0, this, SLOT(slotOK()));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void PasswordDlg::resetCardLogin() {
|
|
|
|
void PasswordDlg::resetCardLogin() {
|
|
|
|
validUserCardInserted = false;
|
|
|
|
validUserCardInserted = false;
|
|
|
|
greet->abort();
|
|
|
|
greet->abort();
|
|
|
|
|
|
|
|
greet->clear();
|
|
|
|
|
|
|
|
greet->revive();
|
|
|
|
greet->start();
|
|
|
|
greet->start();
|
|
|
|
greet->setPasswordPrompt(TQString::null);
|
|
|
|
greet->setPasswordPrompt(TQString::null);
|
|
|
|
|
|
|
|
|
|
|
|