mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	Remove user_id cookie
We can't read it from JS anyway
This commit is contained in:
		
							parent
							
								
									a15d970725
								
							
						
					
					
						commit
						e431c40475
					
				@ -99,11 +99,6 @@ where
 | 
				
			|||||||
                            .http_only(true)
 | 
					                            .http_only(true)
 | 
				
			||||||
                            .finish(),
 | 
					                            .finish(),
 | 
				
			||||||
                    )
 | 
					                    )
 | 
				
			||||||
                    .cookie(
 | 
					 | 
				
			||||||
                        Cookie::build("user_id", &request.name)
 | 
					 | 
				
			||||||
                            .max_age(1.days())
 | 
					 | 
				
			||||||
                            .finish(),
 | 
					 | 
				
			||||||
                    )
 | 
					 | 
				
			||||||
                    .body(token.as_str().to_owned()),
 | 
					                    .body(token.as_str().to_owned()),
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
@ -172,7 +167,7 @@ where
 | 
				
			|||||||
        "/{filename:(index\\.html|main\\.js)?}",
 | 
					        "/{filename:(index\\.html|main\\.js)?}",
 | 
				
			||||||
        web::get().to(index),
 | 
					        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.
 | 
					    // API endpoint.
 | 
				
			||||||
    .service(
 | 
					    .service(
 | 
				
			||||||
        web::scope("/api")
 | 
					        web::scope("/api")
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user