aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin.rs
diff options
context:
space:
mode:
authorNils Mittler <[email protected]>2023-02-20 17:02:14 +0100
committerDaniel GarcĂ­a <[email protected]>2023-02-21 21:37:24 +0100
commit0f656b4889d67cfd3c05f92f2963a600945128fe (patch)
treef4f5997b454219ee4a0ff8d41fadffb4f0c4813e /src/api/admin.rs
parent6fa1dc50bedb4a391a786fdd30fb3814a9d11f2d (diff)
downloadvaultwarden-0f656b4889d67cfd3c05f92f2963a600945128fe.tar.gz
vaultwarden-0f656b4889d67cfd3c05f92f2963a600945128fe.zip
Apply rewording
Diffstat (limited to 'src/api/admin.rs')
-rw-r--r--src/api/admin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin.rs b/src/api/admin.rs
index 92c8e3b8..d875d8be 100644
--- a/src/api/admin.rs
+++ b/src/api/admin.rs
@@ -184,7 +184,7 @@ fn post_admin_login(data: Form<LoginForm>, cookies: &CookieJar<'_>, ip: ClientIp
let cookie = Cookie::build(COOKIE_NAME, jwt)
.path(admin_path())
- .max_age(rocket::time::Duration::minutes(CONFIG.admin_cookie_lifetime()))
+ .max_age(rocket::time::Duration::minutes(CONFIG.admin_session_lifetime()))
.same_site(SameSite::Strict)
.http_only(true)
.finish();