aboutsummaryrefslogtreecommitdiff
path: root/src/controller/login.rs
diff options
context:
space:
mode:
authorJoris2025-01-31 23:27:51 +0100
committerJoris2025-01-31 23:30:45 +0100
commit9244780d6c689936d8a33a0d123d0a54ee284319 (patch)
treec5d712758e32778ec4bacc69b5ca6d3118851558 /src/controller/login.rs
parent1faba72b83c3c061953051f9263e67fd11d37465 (diff)
Upgrade dependenciesmain
Diffstat (limited to 'src/controller/login.rs')
-rw-r--r--src/controller/login.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controller/login.rs b/src/controller/login.rs
index d01f799..f7e0695 100644
--- a/src/controller/login.rs
+++ b/src/controller/login.rs
@@ -44,7 +44,8 @@ pub async fn login(
{
Some(hash) => match bcrypt::verify(login.password, &hash) {
Ok(true) => {
- let login_token = cookie::generate_token();
+ // TODO: error handling
+ let login_token = cookie::generate_token().unwrap();
if db::users::set_login_token(
&db_conn,