From 9238459180eb29bfad8692df63c914ef6b6f3538 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 13 Aug 2023 15:29:40 +0100 Subject: [PATCH] fmt: fix the formatting --- src/methods/account_update.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/methods/account_update.rs b/src/methods/account_update.rs index b57c006..0bb85dc 100644 --- a/src/methods/account_update.rs +++ b/src/methods/account_update.rs @@ -56,10 +56,7 @@ pub async fn submit(mut req: Request) -> tide::Result { let (rs, _res) = ldap.search(&dn, Scope::Base, "(objectClass=*)", vec!["userPassword", "memberOf"])?.success()?; if !rs.is_empty() { let tmp = SearchEntry::construct(rs[0].clone()); - if tmp.attrs.contains_key("userPassword") - && !tmp.attrs["userPassword"].is_empty() - && tmp.attrs["userPassword"][0].starts_with("{SSHA512}") - { + if tmp.attrs.contains_key("userPassword") && !tmp.attrs["userPassword"].is_empty() && tmp.attrs["userPassword"][0].starts_with("{SSHA512}") { pw_keep_same = true; } if tmp.attrs.contains_key("memberOf") {