fix admin add user fail

This commit is contained in:
weisd
2025-02-11 10:10:12 +08:00
parent 9861361aee
commit 1c15eac66a
3 changed files with 9 additions and 7 deletions
-2
View File
@@ -45,8 +45,6 @@ fn encrypt<T: aes_gcm::aead::Aead>(
let nonce = T::generate_nonce(rand::thread_rng());
println!("encrypt nonce len {}, {:?}", nonce.len(), &id);
let encryptor = stream.encrypt(&nonce, data).map_err(Error::ErrEncryptFailed)?;
let mut ciphertext = Vec::with_capacity(salt.len() + 1 + nonce.len() + encryptor.len());