diff options
-rw-r--r-- | src/database.rs | 2 |
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) } } |