Clean up comments

This commit is contained in:
2021-11-10 12:21:17 +01:00
parent 309ec94cdb
commit e3640f0885
2 changed files with 5 additions and 7 deletions

View File

@ -35,8 +35,8 @@ pub enum LoginError {
UserNotLoggedIn
}
/// Request guard which returns an Authenticated struct with is_authenticated=true
/// iff the user has a cookie which proves they are authenticated with peach-web.
/// Request guard which returns an empty Authenticated struct from the request
/// if and only if the user has a cookie which proves they are authenticated with peach-web.
///
/// Note that cookies.get_private uses encryption, which means that this private cookie
/// cannot be inspected, tampered with, or manufactured by clients.
@ -114,7 +114,6 @@ pub fn verify_login_form(login_form: LoginForm) -> Result<(), PeachError> {
#[post("/login", data="<login_form>")]
pub fn login_post(login_form: Form<LoginForm>, cookies: &CookieJar<'_>) -> TemplateOrRedirect {
info!("call to login post");
let result = verify_login_form(login_form.into_inner());
match result {
Ok(_) => {