lib/rack/saml.rb in rack-saml-0.0.7 vs lib/rack/saml.rb in rack-saml-0.1.0
- old
+ new
@@ -129,10 +129,10 @@
return false if session['sid'].nil? # no valid session
if session['expired_at'].nil? # no expiration
return true if sid.nil? # no sid check
return true if session['sid'] == sid # sid check
else
- if Time.now < Time.at(session['expired_at']) # before expiration
+ if Time.now < Time.parse(session['expired_at']) # before expiration
return true if sid.nil? # no sid check
return true if session['sid'] == sid # sid check
end
end
false