diff --git a/extensions/guacamole-auth-totp/src/main/java/org/apache/guacamole/auth/totp/user/UserVerificationService.java b/extensions/guacamole-auth-totp/src/main/java/org/apache/guacamole/auth/totp/user/UserVerificationService.java index e0cd84b3d..cdf4071ad 100644 --- a/extensions/guacamole-auth-totp/src/main/java/org/apache/guacamole/auth/totp/user/UserVerificationService.java +++ b/extensions/guacamole-auth-totp/src/main/java/org/apache/guacamole/auth/totp/user/UserVerificationService.java @@ -271,7 +271,8 @@ public class UserVerificationService { // Get generator based on user's key and provided configuration TOTPGenerator totp = new TOTPGenerator(key.getSecret(), - confService.getMode(), confService.getDigits()); + confService.getMode(), confService.getDigits(), + TOTPGenerator.DEFAULT_START_TIME, confService.getPeriod()); // Verify provided TOTP against value produced by generator if ((code.equals(totp.generate()) || code.equals(totp.previous()))