X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fauthenticator.js;fp=lib%2Fauthenticator.js;h=2534cfa2d5224fe9bdf4c1c407472deb3cd8bd1f;hb=a2f277a5693dc3cfc656d010533ed37e5928b3ee;hp=86b95d6d035e92284756476a1baae491908a5f18;hpb=4c4e541aaf46de91b9b5e9b4640d7336ffe29f5b;p=squeep-authentication-module diff --git a/lib/authenticator.js b/lib/authenticator.js index 86b95d6..2534cfa 100644 --- a/lib/authenticator.js +++ b/lib/authenticator.js @@ -486,6 +486,7 @@ class Authenticator { path: `${this.proxyPrefix}/`, secure: this.secureAuthOnly, }); + res.setHeader(Enum.Header.SetLogin, Enum.LoginState.LoggedIn); return true; } @@ -498,6 +499,7 @@ class Authenticator { path: `${this.proxyPrefix}/`, secure: this.secureAuthOnly, }); + res.setHeader(Enum.Header.SetLogin, Enum.LoginState.LoggedOut); res.statusCode = 302; res.setHeader(Enum.Header.Location, `${loginPath}?r=${encodeURIComponent(req.url)}`);