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