aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/account/mod.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-01 20:32:35 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-01 20:32:35 +0200
commitff9060ea0987e29e4d468ff7c9fed7cc7109bf2b (patch)
treefc8c7ad11ca2dfc7ebccb65ea9ea3c27827405dd /server/src/routes/ui/account/mod.rs
parentf7992589cf45c699599a7ee5fc4634c9db16ff87 (diff)
downloadjellything-ff9060ea0987e29e4d468ff7c9fed7cc7109bf2b.tar
jellything-ff9060ea0987e29e4d468ff7c9fed7cc7109bf2b.tar.bz2
jellything-ff9060ea0987e29e4d468ff7c9fed7cc7109bf2b.tar.zst
federation possible but inconvinient
Diffstat (limited to 'server/src/routes/ui/account/mod.rs')
-rw-r--r--server/src/routes/ui/account/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/routes/ui/account/mod.rs b/server/src/routes/ui/account/mod.rs
index f1b243c..1d36cd8 100644
--- a/server/src/routes/ui/account/mod.rs
+++ b/server/src/routes/ui/account/mod.rs
@@ -65,6 +65,8 @@ pub struct LoginForm {
pub username: String,
#[field(validate = len(..64))]
pub password: String,
+ #[field(default = 604800)] // one week
+ pub expire: u64,
}
#[get("/account/login")]