Commit 9225e515 authored by Robert Czechowski's avatar Robert Czechowski

Make sessions last 12 hours instead of 1.5, ignore 'permanent_login' as...

Make sessions last 12 hours instead of 1.5, ignore 'permanent_login' as cookies are browsersession-based anyways
parent 7f28c0af
Pipeline #715 passed with stages
in 16 minutes and 40 seconds
......@@ -238,7 +238,7 @@ impl MedalConnection for Connection {
oauth_foreign_id: row.get(24) })
.ok()??;
let duration = if session.permanent_login { Duration::days(90) } else { Duration::minutes(90) };
let duration = Duration::hours(12);
let now = time::get_time();
if let Some(last_activity) = session.last_activity {
......
......@@ -350,7 +350,7 @@ impl MedalConnection for Connection {
oauth_foreign_id: row.get(24) })
.ok()??;
let duration = if session.permanent_login { Duration::days(90) } else { Duration::minutes(90) };
let duration = Duration::hours(12);
let now = time::get_time();
if let Some(last_activity) = session.last_activity {
......
......@@ -350,7 +350,7 @@ impl MedalConnection for Connection {
oauth_foreign_id: row.get(24) })
.ok()??;
let duration = if session.permanent_login { Duration::days(90) } else { Duration::minutes(90) };
let duration = Duration::hours(12);
let now = time::get_time();
if let Some(last_activity) = session.last_activity {
......
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