diff --git a/file.js b/file.js index c930c61..a12302a 100644 --- a/file.js +++ b/file.js @@ -63,7 +63,6 @@ class Authenticator { const originalPush = this.users.push; this.users.push = (...args) => { const result = originalPush.apply(this.users, args); - console.log("database changed") saveUsersToFile(this.users, this.DB_FILE_PATH, this.DB_PASSWORD); return result; }; diff --git a/mongodb.js b/mongodb.js index cf032b2..e7a37de 100644 --- a/mongodb.js +++ b/mongodb.js @@ -69,13 +69,11 @@ class Authenticator { if (user.locked) return "User is locked" const result = await bcrypt.compare(password, user.password); if (!result) { - console.log(`${user.loginAttempts} >= ${this.maxLoginAttempts}`) if (user.loginAttempts >= this.maxLoginAttempts) { this.lockUser(user._id); } else { - console.log("changing login attempts") let newAttempts = user.loginAttempts + 1 await this.changeLoginAttempts(user._id, newAttempts); } @@ -100,7 +98,6 @@ class Authenticator { token: twoFactorCode, window: 2 // Sta 2 tijdstippen toe voor en na de huidige tijd }); - console.log('Verification result:', verified); if (!verified) return "Invalid 2FA code"; } @@ -153,7 +150,6 @@ class Authenticator { try { if (jwt.verify(token, this.JWT_SECRET_KEY, this.JWT_OPTIONS)) { let jwt_token = jwt.decode(token); - console.log(jwt_token) let user = await this.getInfoFromUser(jwt_token.id) if (user.jwt_version == jwt_token.version) { diff --git a/package.json b/package.json index 83f5e26..f2d5510 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "seamless-auth", - "version": "3.6.3", + "version": "3.6.4", "description": "A full fledged authentication system...", "type": "commonjs", "main": "memory.js", @@ -8,6 +8,14 @@ "start": "node test/test.js", "test": "npx jest --forceExit *.test.js" }, + "bugs": { + "url": "https://github.com/MattPlayGamez/auth/issues", + "email": "xjuqhfou@anonaddy.me" + }, + "repository": { + "type": "git", + "url": "https://github.com/MattPlayGamez/auth" + }, "extensionsToTreatAsEsm": [ ".js" ], @@ -17,7 +25,6 @@ "dependencies": { "bcrypt": "^5.0.1", "dotenv": "^16.4.5", - "fs": "^0.0.1-security", "jest": "^29.7.0", "jsonwebtoken": "^9.0.2", "mongoose": "^8.6.3",