aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw-agent/actions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/rbw-agent/actions.rs')
-rw-r--r--src/bin/rbw-agent/actions.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/rbw-agent/actions.rs b/src/bin/rbw-agent/actions.rs
index d021bda..0062067 100644
--- a/src/bin/rbw-agent/actions.rs
+++ b/src/bin/rbw-agent/actions.rs
@@ -158,7 +158,9 @@ async fn two_factor(
protected_key,
))
}
- Err(rbw::error::Error::IncorrectPassword) => {
+ Err(rbw::error::Error::IncorrectPassword)
+ // can get this if the user passes an empty string
+ | Err(rbw::error::Error::TwoFactorRequired { .. }) => {
if i == 3 {
return Err(rbw::error::Error::IncorrectPassword)
.context("failed to log in to bitwarden instance");