From ff9060ea0987e29e4d468ff7c9fed7cc7109bf2b Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 1 Aug 2023 20:32:35 +0200 Subject: federation possible but inconvinient --- server/src/routes/ui/account/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/src/routes/ui/account/mod.rs') 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")] -- cgit v1.2.3-70-g09d2