diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 91c4c01..217255e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -211,11 +211,8 @@ async fn cmd_init(cfg: Config) -> Result<()> { } async fn verify_login(cfg: &WrapConfigure, data: &FormData) -> Result<bool> { - match cfg.get_authorizer().method() { - AuthorizerType::PASSWORD => { - cfg.hook().await?; - } - _ => {} + if let AuthorizerType::Password = cfg.get_authorizer().method() { + cfg.hook().await?; } data.authorize(cfg.get_authorizer()).await } |
