WEVOADLSI5FOOXBM5YPAWEIYN2CXROAQ44CLGYOVTJ2OCLSOONYQC
FUCFD4UVRUXDHG24MYEHF2E5E23BIFVKTRGLNBPBVKFLONVSMHTAC
pub async fn get_log_in(data: web::Data<WebData<'_>>) -> HttpResponse {
pub async fn get_log_in(request: HttpRequest, data: web::Data<WebData<'_>>) -> HttpResponse {
let jar = request_to_jar(request); if !jar .private(&data.cookies_key) .get("i_accept_cookie") .map_or(false, |x| x.value() == "yes") { return HttpResponse::Found() .append_header((header::LOCATION, "cookies-policy.html")) .finish(); }
let jar = request_to_jar(request);
if !jar
.private(&data.cookies_key)
.get("i_accept_cookie")
.map_or(false, |x| x.value() == "yes")
{
return HttpResponse::Found()
.append_header((header::LOCATION, "cookies-policy.html"))
.finish();
}
if !jar .private(&data.cookies_key) .get("i_accept_cookie") .map_or(false, |x| x.value() == "yes") { return HttpResponse::Found() .append_header((header::LOCATION, "cookies-policy.html")) .finish(); }