From 96c15376aad3aa48656db6ad603b1786fff4f64a Mon Sep 17 00:00:00 2001 From: cnr Date: Thu, 5 Jan 2017 15:20:10 -0700 Subject: [PATCH] Use default 2FA window size (3) --- .../src/mineplex/core/twofactor/TwoFactorAuth.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/twofactor/TwoFactorAuth.java b/Plugins/Mineplex.Core/src/mineplex/core/twofactor/TwoFactorAuth.java index bb30b57ce..fb2a5779a 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/twofactor/TwoFactorAuth.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/twofactor/TwoFactorAuth.java @@ -24,7 +24,6 @@ import org.bukkit.map.MapView; import org.bukkit.metadata.FixedMetadataValue; import com.warrenstrange.googleauth.GoogleAuthenticator; -import com.warrenstrange.googleauth.GoogleAuthenticatorConfig; import mineplex.core.Managers; import mineplex.core.MiniClientPlugin; @@ -43,9 +42,7 @@ public class TwoFactorAuth extends MiniClientPlugin private static final String TFA_SETUP = "twofactor:setup"; private static final String TFA_AUTHENTICATING = "twofactor:authenticating"; - private static final GoogleAuthenticator authenticator = new GoogleAuthenticator( - new GoogleAuthenticatorConfig.GoogleAuthenticatorConfigBuilder().setWindowSize(2).build() - ); + private static final GoogleAuthenticator authenticator = new GoogleAuthenticator(); private final CoreClientManager _clientManager = Managers.require(CoreClientManager.class); private final TwoFactorRepository _repository = new TwoFactorRepository(DBPool.getAccount());