Skip to content
Snippets Groups Projects
Commit ad0ba2d6 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Set timeout in ensure_alive from 30 to 90 min

parent a7dff12e
Branches
Tags
No related merge requests found
......@@ -169,7 +169,7 @@ impl SessionUser {
}
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();
if now - self.last_activity? < duration {
Some(self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment