lib/gds-sso/warden_config.rb in gds-sso-1.2.0 vs lib/gds-sso/warden_config.rb in gds-sso-1.2.1

- old
+ new

@@ -7,10 +7,14 @@ # If they were remotely signed out, clear the flag as they're no longer suspended user.clear_remotely_signed_out! end Warden::Manager.serialize_into_session do |user| - user.respond_to?(:uid) ? [user.uid, Time.now.utc] : nil + if user.respond_to?(:uid) and user.uid + [user.uid, Time.now.utc] + else + nil + end end Warden::Manager.serialize_from_session do |tuple| # This will reject old sessions that don't have an auth_set time uid, auth_set = tuple