summaryrefslogtreecommitdiff
path: root/src/routers/vault/types
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-03-06 15:36:44 -0500
committergumi <git@gumi.ca>2020-03-06 16:03:34 -0500
commit86be43f1c0143495abe003654a4e415a154b11d4 (patch)
tree9ddfd0f8092369ba787ca8f0b49788d8684f4e1c /src/routers/vault/types
parent67ee81e912ab26930b3152ab3f35712cc68573e7 (diff)
downloadapiv1-86be43f1c0143495abe003654a4e415a154b11d4.tar.gz
apiv1-86be43f1c0143495abe003654a4e415a154b11d4.tar.bz2
apiv1-86be43f1c0143495abe003654a4e415a154b11d4.tar.xz
apiv1-86be43f1c0143495abe003654a4e415a154b11d4.zip
prevent uuid bruteforcing
Diffstat (limited to 'src/routers/vault/types')
-rw-r--r--src/routers/vault/types/Session.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routers/vault/types/Session.js b/src/routers/vault/types/Session.js
index 1809cac..ff7e20d 100644
--- a/src/routers/vault/types/Session.js
+++ b/src/routers/vault/types/Session.js
@@ -24,6 +24,8 @@ module.exports = class Session {
gameAccounts = [];
/** ip that was used to init the session */
ip;
+ /** refuse to authenticate a session with a different IP */
+ strictIPCheck = true;
constructor (ip, email) {
this.ip = ip;