Ensure that session cookie is always passed in hello route

This commit is contained in:
Maciej Szlosarczyk 2019-07-30 13:41:20 +03:00
parent 3a1f83cfdd
commit 0e46f52630
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765

View file

@ -8,7 +8,9 @@ class EppServer < Roda
r.on "session" do r.on "session" do
r.get "hello" do r.get "hello" do
render("session/hello") if r.cookies['session']
render("session/hello")
end
end end
r.post "login" do r.post "login" do