aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-08 19:13:08 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-08 19:13:08 +0200
commit6b776ec3e10b71a8c88e98ebf5662d3aa48de961 (patch)
tree6e8617bf613618f1f1cf5664b23d0d2ab85f07fd /src
parent0c36907e9296373dbc23e059c083db8e376ff79e (diff)
downloadgpn-tron-rust-6b776ec3e10b71a8c88e98ebf5662d3aa48de961.tar
gpn-tron-rust-6b776ec3e10b71a8c88e98ebf5662d3aa48de961.tar.bz2
gpn-tron-rust-6b776ec3e10b71a8c88e98ebf5662d3aa48de961.tar.zst
actually save passwords
Diffstat (limited to 'src')
-rw-r--r--src/database.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/database.rs b/src/database.rs
index ac67857..40b950c 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -28,6 +28,8 @@ impl DatabaseExt for Database {
return Ok(pw.value() == password);
}
table.insert(username, password)?;
+ drop(table);
+ txn.commit()?;
Ok(true)
}
}