chore: syntax fix

This commit is contained in:
Jesús Pérez Lorenzo 2021-09-11 19:29:40 +01:00
parent 2f305ffecf
commit 3258b05bc1

View File

@ -176,7 +176,7 @@ pub async fn logout_handler(
//-> WebResult<impl Reply> {
let reqenv = ReqTasks::new(db.app, db.auth, header, method, "", "logout_header", "auth",);
// let allow_origin = reqenv.config().allow_origin;
&reqenv.auth_store.sessions.write().await.remove(&user_ctx.token);
reqenv.auth_store.sessions.write().await.remove(&user_ctx.token);
Ok(warp::http::Response::builder()
.status(StatusCode::OK)
//.header("Access-Control-Allow-Origin",&allow_origin)