diff --git a/src/server/web_ui.rs b/src/server/web_ui.rs index ff24619..efdbd0a 100644 --- a/src/server/web_ui.rs +++ b/src/server/web_ui.rs @@ -7,7 +7,7 @@ use actix_session::Session; use actix_web::{web, HttpResponse}; use light_openid::primitives::OpenIDConfig; -// Main route +/// Main route pub async fn home(session: Session) -> HttpResult { // Get user information, requesting authentication if information is missing let Some(user): Option = session.get(USER_SESSION_KEY)? else { @@ -36,7 +36,7 @@ pub struct AuthCallbackQuery { state: String, } -// Authenticate user callback +/// Authenticate user callback pub async fn oidc_cb(session: Session, query: web::Query) -> HttpResult { if session.get(STATE_KEY)? != Some(query.state.to_string()) { return Ok(HttpResponse::BadRequest()