Commit ad0ba2d6 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Set timeout in ensure_alive from 30 to 90 min

parent a7dff12e
...@@ -169,7 +169,7 @@ impl SessionUser { ...@@ -169,7 +169,7 @@ impl SessionUser {
} }
pub fn ensure_alive(self) -> Option<Self> { pub fn ensure_alive(self) -> Option<Self> {
let duration = if self.permanent_login { Duration::days(90) } else { Duration::minutes(30) }; let duration = if self.permanent_login { Duration::days(90) } else { Duration::minutes(90) };
let now = time::get_time(); let now = time::get_time();
if now - self.last_activity? < duration { if now - self.last_activity? < duration {
Some(self) Some(self)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment