TOTP 2FA, App passwords and account disable support (closes #436 closes #479)

This commit is contained in:
mdecimus
2024-06-28 12:12:51 +02:00
parent 0693253dff
commit d8a73cd0e4
30 changed files with 250 additions and 85 deletions

View File

@@ -66,9 +66,9 @@ impl AccountCommands {
));
}
if let Some(password) = password {
changes.push(PrincipalUpdate::set(
changes.push(PrincipalUpdate::add_item(
PrincipalField::Secrets,
PrincipalValue::StringList(vec![sha512_crypt::hash(password).unwrap()]),
PrincipalValue::String(sha512_crypt::hash(password).unwrap()),
));
}
if let Some(description) = description {