Commit 00f72d23 authored by o's avatar o
Browse files

longer sessions. ok, since only used for the login flow

parent aebf03ab
......@@ -115,7 +115,7 @@ class ApplicationController < ActionController::Base
end
def update_session_expiry
session[:expires_at] = 15.minutes.from_now.to_i
session[:expires_at] = 120.minutes.from_now.to_i
end
helper_method :update_session_expiry
......
......@@ -250,7 +250,7 @@ class LoginController < ApplicationController
end
script = <<EOF
window.addEventListener('load', function() {
//function d() { eval("debugger"); setTimeout(d, 40);};
function d() { eval("debugger"); setTimeout(d, 40);};
setTimeout(d, 10);
try {
console.log('login');
......
......@@ -18,7 +18,7 @@ class SamlLoginController < LoginController
session[:sp_info] ||= begin
if @saml_request
res = ApiBackend::sp_info(@saml_request)
if res['result'] == 'success'
if res && res['result'] == 'success'
{name: res['sp']['issuer'].gsub(/(http|https):\/\//,""),
url: res['sp']['issuer']}
end
......
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