From ba180179b0583bab772b82c5c400db3b3b5184ea Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sat, 29 Jul 2023 18:41:53 +0100 Subject: [PATCH] fix: discord was not set to teh right field --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1dab83c..c21d396 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -161,7 +161,7 @@ async fn update_accounts(pool: &Pool, config: &Config) { tmp_account.uid_number = tmp.attrs["uidNumber"][0].clone().parse().unwrap_or(0); } if tmp.attrs.contains_key("skDiscord") && !tmp.attrs["skDiscord"].is_empty() { - tmp_account.user = tmp.attrs["skDiscord"][0].clone(); + tmp_account.discord = Option::from(tmp.attrs["skDiscord"][0].clone()); } if tmp.attrs.contains_key("skMemberOf") && !tmp.attrs["skMemberOf"].is_empty() && tmp.attrs["skMemberOf"].contains(&String::from("cn=skynet-users,ou=groups,dc=skynet,dc=ie")) { tmp_account.enabled = true;