Removed excesive validity checks
This commit is contained in:
parent
497e0ba5bf
commit
24420096fd
@ -22,10 +22,6 @@ async fn encrypt_account(
|
|||||||
master_pass: Arc<str>,
|
master_pass: Arc<str>,
|
||||||
failed: &Mutex<&mut Vec<String>>,
|
failed: &Mutex<&mut Vec<String>>,
|
||||||
) {
|
) {
|
||||||
if !account.validate() {
|
|
||||||
failed.lock().push(account.name);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let name = account.name.clone();
|
let name = account.name.clone();
|
||||||
match spawn_blocking(move || account.into_account(user_id, &master_pass)).await {
|
match spawn_blocking(move || account.into_account(user_id, &master_pass)).await {
|
||||||
Ok(Ok(account)) => match account.insert(db).await {
|
Ok(Ok(account)) => match account.insert(db).await {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user