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:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user