Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/gem-hunters

This commit is contained in:
Sam 2017-01-24 17:18:29 +00:00
commit 692fcbacbb

View File

@ -27,6 +27,7 @@ import org.bukkit.map.MapRenderer;
import org.bukkit.map.MapView;
import com.warrenstrange.googleauth.GoogleAuthenticator;
import com.warrenstrange.googleauth.GoogleAuthenticatorConfig;
import mineplex.core.Managers;
import mineplex.core.MiniClientPlugin;
@ -46,7 +47,9 @@ public class TwoFactorAuth extends MiniClientPlugin<TwoFactorData>
private final Map<UUID, String> setupData = new HashMap<>();
private final Set<UUID> authenticating = new HashSet<>();
private static final GoogleAuthenticator authenticator = new GoogleAuthenticator();
private static final GoogleAuthenticator authenticator = new GoogleAuthenticator(
new GoogleAuthenticatorConfig.GoogleAuthenticatorConfigBuilder().setWindowSize(5).build()
);
private final CoreClientManager _clientManager = Managers.require(CoreClientManager.class);
private final TwoFactorRepository _repository = new TwoFactorRepository(DBPool.getAccount());