We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 484b9c1 + f99558b commit 2b4b256Copy full SHA for 2b4b256
1 file changed
backend/src/main/java/com/park/utmstack/service/tfa/EmailTfaService.java
@@ -43,7 +43,7 @@ public TfaInitResponse initiateSetup(User user) {
43
String secret = tfaService.generateSecret();
44
String code = tfaService.generateCode(secret);
45
46
- long expiresAt = System.currentTimeMillis() + TimeUnit.SECONDS.toMillis(30);
+ long expiresAt = System.currentTimeMillis() + TimeUnit.SECONDS.toMillis(Constants.EXPIRES_IN_SECONDS_TOTP * 10);
47
TfaSetupState state = new TfaSetupState(secret, expiresAt);
48
cache.storeState(user.getLogin(), TfaMethod.EMAIL, state);
49
0 commit comments