Use default 2FA window size (3)

This commit is contained in:
cnr 2017-01-05 15:20:10 -07:00
parent 435abbba08
commit 96c15376aa

View File

@ -24,7 +24,6 @@ import org.bukkit.map.MapView;
import org.bukkit.metadata.FixedMetadataValue; import org.bukkit.metadata.FixedMetadataValue;
import com.warrenstrange.googleauth.GoogleAuthenticator; import com.warrenstrange.googleauth.GoogleAuthenticator;
import com.warrenstrange.googleauth.GoogleAuthenticatorConfig;
import mineplex.core.Managers; import mineplex.core.Managers;
import mineplex.core.MiniClientPlugin; 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_SETUP = "twofactor:setup";
private static final String TFA_AUTHENTICATING = "twofactor:authenticating"; private static final String TFA_AUTHENTICATING = "twofactor:authenticating";
private static final GoogleAuthenticator authenticator = new GoogleAuthenticator( private static final GoogleAuthenticator authenticator = new GoogleAuthenticator();
new GoogleAuthenticatorConfig.GoogleAuthenticatorConfigBuilder().setWindowSize(2).build()
);
private final CoreClientManager _clientManager = Managers.require(CoreClientManager.class); private final CoreClientManager _clientManager = Managers.require(CoreClientManager.class);
private final TwoFactorRepository _repository = new TwoFactorRepository(DBPool.getAccount()); private final TwoFactorRepository _repository = new TwoFactorRepository(DBPool.getAccount());