Merge branch 'main' into #4-password-reset

# Conflicts:
#	src/lib.rs
#	src/methods/account_new.rs
This commit is contained in:
silver 2023-08-06 17:57:02 +01:00
commit b570ed9073
4 changed files with 61 additions and 63 deletions

View file

@ -232,6 +232,7 @@ pub mod email {
pub mod account {
use super::*;
use crate::update_group;
#[derive(Debug, Deserialize)]
struct LdapNewUser {
@ -408,7 +409,12 @@ pub mod account {
ldap.extended(tmp).unwrap();
ldap.unbind()?;
// user is already verified by being an active member on wolves
if let Err(e) = update_group(config, "skynet-users", &vec![username.to_string()], true).await {
println!("Couldnt add {} to skynet-users: {:?}", username, e)
}
ldap.unbind()?;
Ok(())
}