Fix a silly typo.

This commit is contained in:
Rasmus Kaj 2020-12-23 11:45:35 +01:00
parent 110b4b23e3
commit 20da5fab92

View File

@ -27,7 +27,7 @@ pub fn post_login(context: Context, form: LoginForm) -> Response {
return Builder::new()
.header(
header::SET_COOKIE,
format!("EXAUTH={}; SameSite=Strict; HttpOpnly", token),
format!("EXAUTH={}; SameSite=Strict; HttpOnly", token),
)
.redirect(next.unwrap_or("/"));
}
@ -112,7 +112,7 @@ pub fn logout(_context: Context) -> Response {
Builder::new()
.header(
header::SET_COOKIE,
"EXAUTH=; Max-Age=0; SameSite=Strict; HttpOpnly",
"EXAUTH=; Max-Age=0; SameSite=Strict; HttpOnly",
)
.redirect("/")
}