projects
/
squeep-authentication-module
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update devDependencies, clean up lint issues
[squeep-authentication-module]
/
lib
/
authenticator.js
diff --git
a/lib/authenticator.js
b/lib/authenticator.js
index 86b95d6d035e92284756476a1baae491908a5f18..2534cfa2d5224fe9bdf4c1c407472deb3cd8bd1f 100644
(file)
--- a/
lib/authenticator.js
+++ b/
lib/authenticator.js
@@
-486,6
+486,7
@@
class Authenticator {
path: `${this.proxyPrefix}/`,
secure: this.secureAuthOnly,
});
path: `${this.proxyPrefix}/`,
secure: this.secureAuthOnly,
});
+ res.setHeader(Enum.Header.SetLogin, Enum.LoginState.LoggedIn);
return true;
}
return true;
}
@@
-498,6
+499,7
@@
class Authenticator {
path: `${this.proxyPrefix}/`,
secure: this.secureAuthOnly,
});
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)}`);
res.statusCode = 302;
res.setHeader(Enum.Header.Location, `${loginPath}?r=${encodeURIComponent(req.url)}`);