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:
parent
535d1c06c4
commit
9f2afec526
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user