Fix sunstone login when requesting / instead of /login

(cherry picked from commit 29bc3232d6d4601513301b2d4c7fae0724876fc8)
This commit is contained in:
Hector Sanjuan authored and Ruben S. Montero committed 2012-09-03 13:00:32 +02:00
1 parent 51d032b35d
commit e4e7929471
1 file changed
+1 -7
+1 -7
View File
@@ -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",