Skip to content

Commit f4c7aaf

Browse files
merge: branch 'feature/verification-fp' of github.com:onesoft-sudo/sudobot into feature/verification-fp
Signed-off-by: Ar Rakin <[email protected]>
2 parents 07ab80d + 3feb69f commit f4c7aaf

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/main/typescript/api/controllers/VerificationController.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ class VerificationController extends Controller {
108108
return this.response(400, { error: "Missing IP address." });
109109
}
110110

111-
// if (await this.verificationService.isProxy(ip)) {
112-
// return this.response(400, {
113-
// error: "You seem to be using a VPN or proxy. Please disable it, reload this page and try again."
114-
// });
115-
// }
111+
if (await this.verificationService.isProxy(ip)) {
112+
return this.response(400, {
113+
error: "You seem to be using a VPN or proxy. Please disable it, reload this page and try again."
114+
});
115+
}
116116

117117
const result = await this.verificationService.connectDiscord(
118118
guildId,

src/main/typescript/automod/VerificationService.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -569,12 +569,12 @@ class VerificationService extends Service {
569569
let incomplete = false;
570570

571571
verify: {
572-
// if (proxyCheck) {
573-
// error =
574-
// "You seem to be using a VPN or proxy. Please disable it, reload this page and try again.";
575-
// reason = "VPN or Proxy detected.";
576-
// break verify;
577-
// }
572+
if (proxyCheck) {
573+
error =
574+
"You seem to be using a VPN or proxy. Please disable it, reload this page and try again.";
575+
reason = "VPN or Proxy detected.";
576+
break verify;
577+
}
578578

579579
const entry = await this.application.database.query.verificationEntries.findFirst({
580580
where(fields, operators) {

0 commit comments

Comments
 (0)