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

Better check for unauthorized sessions in ozones

This commit is contained in:
Ruben S. Montero 2011-11-15 23:22:32 +01:00
parent 271e99d654
commit 51cd4a26bb

View File

@ -159,10 +159,13 @@ end
before do
unless request.path=='/login' || request.path=='/'
rc , msg = build_session unless authorized?
if rc == 401
halt 401
unless authorized?
rc , msg = build_session
if rc == 401
halt 401
end
end
@OzonesServer = OzonesServer.new(session[:key])