diff options
Diffstat (limited to 'src/bin/rbw-agent/agent.rs')
-rw-r--r-- | src/bin/rbw-agent/agent.rs | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/bin/rbw-agent/agent.rs b/src/bin/rbw-agent/agent.rs index 8db8a59..7ca519b 100644 --- a/src/bin/rbw-agent/agent.rs +++ b/src/bin/rbw-agent/agent.rs @@ -134,8 +134,23 @@ async fn handle_request( }; let set_timeout = match &req.action { rbw::protocol::Action::Login => { - crate::actions::login(sock, state.clone(), req.tty.as_deref()) - .await?; + crate::actions::login( + sock, + state.clone(), + req.tty.as_deref(), + false, + ) + .await?; + true + } + rbw::protocol::Action::LoginApiKey => { + crate::actions::login( + sock, + state.clone(), + req.tty.as_deref(), + true, + ) + .await?; true } rbw::protocol::Action::Unlock => { |