Fix double-logout bug with SSL

This commit is contained in:
Calvin Montgomery 2014-06-07 00:20:52 -07:00
parent fdf7900dc8
commit 2b525c13fb
1 changed files with 5 additions and 3 deletions

View File

@ -55,11 +55,13 @@ mixin navloginform(redirect)
button#login.btn.btn-default(type="submit") Login
mixin navlogoutform(redirect)
if loginDomain == null
- loginDomain = ""
if redirect
- url = "/logout?redirect=" + redirect
- url = "logout?redirect=" + redirect
else
- url = "/logout"
- url = "logout"
p#logoutform.navbar-text.pull-right
span#welcome Welcome, #{loginName}
span  · 
a#logout.navbar-link(href=url) Logout
a#logout.navbar-link(href="#{loginDomain}/#{url}") Logout