Unify the touch request messages

This is also a good test for sending emojis through the age plugin IPC
protocol.
This commit is contained in:
Jack Grigg
2021-12-20 03:22:25 +00:00
parent e5bdffa5cc
commit 2fc2dcd1c3
+2 -2
View File
@@ -409,11 +409,11 @@ impl Connection {
self.last_touch,
) {
(Some(TouchPolicy::Always), _) | (Some(TouchPolicy::Cached), None) => {
callbacks.message("Please touch the YubiKey...")?.unwrap();
callbacks.message("👆 Please touch the YubiKey")?.unwrap();
true
}
(Some(TouchPolicy::Cached), Some(last)) if last.elapsed() >= FIFTEEN_SECONDS => {
callbacks.message("Please touch the YubiKey...")?.unwrap();
callbacks.message("👆 Please touch the YubiKey")?.unwrap();
true
}
_ => false,