From 80ba4c33b656d8501df4673e39783ae744b3b886 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 17 Feb 2026 20:34:21 +0100 Subject: [PATCH] OTP Code updated to 6 Digit Code, was 5 before. --- .../SuMoC/backend/security/services/AuthenticationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/SuMoC/backend/security/services/AuthenticationService.java b/src/main/java/SuMoC/backend/security/services/AuthenticationService.java index efd38f2..728b67d 100644 --- a/src/main/java/SuMoC/backend/security/services/AuthenticationService.java +++ b/src/main/java/SuMoC/backend/security/services/AuthenticationService.java @@ -172,7 +172,7 @@ public class AuthenticationService { private String generate_six_digit_OTP(){ SecureRandom random = new SecureRandom(); - int code = 10000 + random.nextInt(90000); + int code = 100000 + random.nextInt(900000); return String.valueOf(code); }