Remove user_id cookie

We can't read it from JS anyway
This commit is contained in:
Valentin Tolmer 2021-05-13 19:32:46 +02:00
parent a15d970725
commit e431c40475

View File

@ -99,11 +99,6 @@ where
.http_only(true)
.finish(),
)
.cookie(
Cookie::build("user_id", &request.name)
.max_age(1.days())
.finish(),
)
.body(token.as_str().to_owned()),
)
})
@ -172,7 +167,7 @@ where
"/{filename:(index\\.html|main\\.js)?}",
web::get().to(index),
)
.service(web::resource("/authorize").route(web::post().to(post_authorize::<Backend>)))
.service(web::resource("/api/authorize").route(web::post().to(post_authorize::<Backend>)))
// API endpoint.
.service(
web::scope("/api")