add pin caching on initialization to avoid too many taps

This commit is contained in:
Michele Balistreri 2019-11-21 18:56:27 +03:00
parent a40d878eef
commit 2845545845
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A

View File

@ -30,6 +30,7 @@ class InitCommand : CardCommand {
context.cmdSet.select().checkOK()
context.cmdSet.autoPair(initPairing)
Registry.pairingManager.putPairing(context.cmdSet.applicationInfo.instanceUID, context.cmdSet.pairing)
Registry.pinCache.putPIN(context.cmdSet.applicationInfo.instanceUID, initPIN!!)
CardCommand.Result.OK
} catch (e: IOException) {
CardCommand.Result.RETRY