mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Fix sunstone login when requesting / instead of /login
(cherry picked from commit 29bc3232d6d4601513301b2d4c7fae0724876fc8)
This commit is contained in:
1 parent
51d032b35d
commit
e4e7929471
1 file changed
+1
-7
@@ -219,13 +219,7 @@ end
|
||||
##############################################################################
|
||||
get '/' do
|
||||
if !authorized?
|
||||
if settings.config[:auth] == "x509"
|
||||
templ = "login_x509.html"
|
||||
else
|
||||
templ = "login.html"
|
||||
end
|
||||
|
||||
return File.read(File.dirname(__FILE__)+'/templates/'+templ)
|
||||
return erb :login
|
||||
end
|
||||
time = Time.now + 60*10
|
||||
response.set_cookie("one-user",
|
||||
|
||||
Reference in new issue
Block a user