mirror of https://github.com/calzoneman/sync.git
Fix double-logout bug with SSL
This commit is contained in:
parent
fdf7900dc8
commit
2b525c13fb
|
@ -55,11 +55,13 @@ mixin navloginform(redirect)
|
||||||
button#login.btn.btn-default(type="submit") Login
|
button#login.btn.btn-default(type="submit") Login
|
||||||
|
|
||||||
mixin navlogoutform(redirect)
|
mixin navlogoutform(redirect)
|
||||||
|
if loginDomain == null
|
||||||
|
- loginDomain = ""
|
||||||
if redirect
|
if redirect
|
||||||
- url = "/logout?redirect=" + redirect
|
- url = "logout?redirect=" + redirect
|
||||||
else
|
else
|
||||||
- url = "/logout"
|
- url = "logout"
|
||||||
p#logoutform.navbar-text.pull-right
|
p#logoutform.navbar-text.pull-right
|
||||||
span#welcome Welcome, #{loginName}
|
span#welcome Welcome, #{loginName}
|
||||||
span ·
|
span ·
|
||||||
a#logout.navbar-link(href=url) Logout
|
a#logout.navbar-link(href="#{loginDomain}/#{url}") Logout
|
||||||
|
|
Loading…
Reference in New Issue