diff --git a/src/webutils/auth.rs b/src/webutils/auth.rs index 2f0fb91..89d5efa 100644 --- a/src/webutils/auth.rs +++ b/src/webutils/auth.rs @@ -1,5 +1,4 @@ use actix_session::Session; -use actix_web::Error; use actix_web_httpauth::extractors::basic::BasicAuth; pub trait AuthValidator { @@ -13,7 +12,10 @@ pub trait AuthValidator { let result = session.get::("user"); match result { Ok(username) => {username.map(|u| User(u))} - Err(e) => {None} + Err(e) => { + println!("{}", e); + None + } } } }