Fix comments
This commit is contained in:
		| @@ -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<User> = 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<AuthCallbackQuery>) -> HttpResult { | ||||
|     if session.get(STATE_KEY)? != Some(query.state.to_string()) { | ||||
|         return Ok(HttpResponse::BadRequest() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user