Added TODO

This commit is contained in:
Talha Qamar 2025-03-07 22:22:16 +05:00
parent c10be0fa22
commit da156401d1
2 changed files with 1 additions and 2 deletions

View file

@ -1,5 +1,4 @@
use routes::get_routes;
mod account;
mod database;
mod handle;

View file

@ -93,8 +93,8 @@ fn auth_user() -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejectio
log::info!("Authing user rn.");
let db = Database::new();
let reply = if db.check_login(&body.username, &body.password) {
// TODO: get rid of unwraps here in favor of good responses
let inner_handle = db.get_user(&body.username).unwrap();
let handle = Handle::new(&(inner_handle), db).unwrap();
log::info!("All good");
let handle2 = Some(handle.get());