forked from PeachCloud/peach-workspace
Clean up comments
This commit is contained in:
@ -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(_) => {
|
||||
|
Reference in New Issue
Block a user