aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-08-11 22:03:30 +0300
committerGravatar Vitaly Takmazov2023-08-11 22:03:30 +0300
commitcf49cd32cb7e8ac5f698e2353156669b4a12139c (patch)
tree0735fe9fa703b37839efa37b0455e50ce6dffa7d /src/main
parent0d41efe37f0e961d203b6ebceada7e2aca452560 (diff)
Do not send verification emails to unknown users
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/www/api/Service.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/com/juick/www/api/Service.java b/src/main/java/com/juick/www/api/Service.java
index 1e3dcdc8..41fdcfbf 100644
--- a/src/main/java/com/juick/www/api/Service.java
+++ b/src/main/java/com/juick/www/api/Service.java
@@ -79,8 +79,6 @@ public class Service {
private User serviceUser;
@Inject
private StorageService storageService;
- @Value("${banned_emails:}")
- private String[] ignoredEmails;
@Inject
private ServerManager serverManager;
@@ -186,12 +184,7 @@ public class Service {
}
}
} else {
- if (!Arrays.asList(ignoredEmails).contains(from)) {
- String verificationCode = RandomStringUtils.randomAlphanumeric(8).toUpperCase();
- emailService.addVerificationCode(null, from, verificationCode);
- applicationEventPublisher
- .publishEvent(new AccountVerificationEvent(this, from, verificationCode));
- }
+ logger.info("Unknown user: {}", from);
}
} catch (AddressException e) {
logger.info("Got email with invalid from address");