1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

Better handling of unathoreized requests in Ozones

This commit is contained in:
Ruben S. Montero 2011-11-14 09:15:51 +01:00
parent 535d1c06c4
commit 9f2afec526

View File

@ -159,7 +159,11 @@ end
before do
unless request.path=='/login' || request.path=='/'
build_session unless authorized?
rc , msg = build_session unless authorized?
if rc == 401
halt 401
end
@OzonesServer = OzonesServer.new(session[:key])
@pr = OZones::ProxyRules.new("apache",config[:htaccess])