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:
parent
271e99d654
commit
51cd4a26bb
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user