Implement OTP clipboard and QR TUI
This commit is contained in:
@@ -36,6 +36,7 @@ pub enum AuthenticationTarget {
|
||||
Entry(String),
|
||||
Workflow(Box<WorkflowSubmission>),
|
||||
Git(ironstorage::command::GitRequest),
|
||||
Otp(crate::app::OtpUiRequest),
|
||||
}
|
||||
|
||||
struct AuthenticationCompletion {
|
||||
@@ -84,6 +85,10 @@ impl AuthenticationCoordinator {
|
||||
self.request(AuthenticationTarget::Git(request));
|
||||
}
|
||||
|
||||
pub fn request_otp(&mut self, request: crate::app::OtpUiRequest) {
|
||||
self.request(AuthenticationTarget::Otp(request));
|
||||
}
|
||||
|
||||
fn request(&mut self, target: AuthenticationTarget) {
|
||||
self.generation = self.generation.wrapping_add(1);
|
||||
let generation = self.generation;
|
||||
|
||||
Reference in New Issue
Block a user