diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-10-27 22:16:46 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-10-27 22:16:46 -0400 |
commit | 5d0e308c1c57bea30d2ad9008b6dbc7936d58645 (patch) | |
tree | 3c3798d5fb826aeaca62e11d9e56e1e3b610ca2b /src/bin/rbw/actions.rs | |
parent | 7b95f7b9d84c44ca273c1a1ce7ab62925d4a5def (diff) | |
download | rbw-5d0e308c1c57bea30d2ad9008b6dbc7936d58645.tar.gz rbw-5d0e308c1c57bea30d2ad9008b6dbc7936d58645.zip |
add a separate "register" command to log in with api keys
Diffstat (limited to 'src/bin/rbw/actions.rs')
-rw-r--r-- | src/bin/rbw/actions.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/rbw/actions.rs b/src/bin/rbw/actions.rs index e0e1e55..39fde15 100644 --- a/src/bin/rbw/actions.rs +++ b/src/bin/rbw/actions.rs @@ -1,12 +1,12 @@ use anyhow::Context as _; use std::io::Read as _; -pub fn login(apikey: bool) -> anyhow::Result<()> { - if apikey { - simple_action(rbw::protocol::Action::LoginApiKey) - } else { - simple_action(rbw::protocol::Action::Login) - } +pub fn register() -> anyhow::Result<()> { + simple_action(rbw::protocol::Action::Register) +} + +pub fn login() -> anyhow::Result<()> { + simple_action(rbw::protocol::Action::Login) } pub fn unlock() -> anyhow::Result<()> { |