Use default 2FA window size (3)

This commit is contained in:
cnr 2017-01-05 15:20:10 -07:00
parent 435abbba08
commit 96c15376aa
1 changed files with 1 additions and 4 deletions

View File

@ -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<TwoFactorData>
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());