screenShield: unblank when inserting smartcard

If a user inserts the smartcard when the screen is locked/blanked
we should ask them their pin right away.

At the moment they have to wiggle the mouse or do some other
action to get the screen to unblank.
This commit is contained in:
Ray Strode 2015-07-03 13:54:36 -04:00
parent 11092fa961
commit 4598d7aa5f

View file

@ -94,8 +94,10 @@ export class ScreenShield extends Signals.EventEmitter {
this._smartcardManager = SmartcardManager.getSmartcardManager();
this._smartcardManager.connect('smartcard-inserted',
(manager, token) => {
if (this._isLocked && token.UsedToLogin)
if (this._isLocked && token.UsedToLogin) {
this._wakeUpScreen();
this._activateDialog();
}
});
this._credentialManagers = {};