mirror of
https://github.com/Noratrieb/oh-oh.git
synced 2026-01-14 17:15:02 +01:00
t
This commit is contained in:
parent
34f9302061
commit
4d7a2be572
2 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
resolver = "3"
|
resolver = "3"
|
||||||
members = ["idp"]
|
members = ["idp"]
|
||||||
|
|
||||||
|
[profile.dev.package.blake2]
|
||||||
|
opt-level = 2
|
||||||
|
|
||||||
|
[profile.dev.package.argon2]
|
||||||
|
opt-level = 2
|
||||||
|
|
|
||||||
|
|
@ -435,6 +435,8 @@ async fn login_2fa_post(
|
||||||
) -> Result<impl IntoResponse, Response> {
|
) -> Result<impl IntoResponse, Response> {
|
||||||
let now = jiff::Timestamp::now();
|
let now = jiff::Timestamp::now();
|
||||||
|
|
||||||
|
// TODO: limit age of locked session
|
||||||
|
|
||||||
let Some(session_id) = jar.get(crate::SESSION_ID_COOKIE_NAME) else {
|
let Some(session_id) = jar.get(crate::SESSION_ID_COOKIE_NAME) else {
|
||||||
return Err(Redirect::to("/").into_response());
|
return Err(Redirect::to("/").into_response());
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue