Commit two totp changes from before

This commit is contained in:
Colin McDonald 2016-07-03 16:32:02 -04:00
parent d3bdeb6d50
commit fa5aee848a
2 changed files with 2 additions and 0 deletions

View File

@ -7,5 +7,6 @@ public class Permissions {
public static final String PROTECTED_PUNISHMENT = "minehq.punishment.protected"; public static final String PROTECTED_PUNISHMENT = "minehq.punishment.protected";
public static final String BYPASS_VPN_CHECK = "minehq.vpn.bypass"; public static final String BYPASS_VPN_CHECK = "minehq.vpn.bypass";
public static final String REQUIRE_TOTP_CODE = "minehq.totp.require";
} }

View File

@ -7,6 +7,7 @@ public enum TotpAuthorizationResult {
AUTHORIZED_NOT_SET(true), AUTHORIZED_NOT_SET(true),
AUTHORIZED_IP_PRE_AUTH(true), AUTHORIZED_IP_PRE_AUTH(true),
AUTHORIZED_GOOD_CODE(true), AUTHORIZED_GOOD_CODE(true),
NOT_AUTHORIZED_NOT_SET(false),
NOT_AUTHORIZED_RECENTLY_USED(false), NOT_AUTHORIZED_RECENTLY_USED(false),
NOT_AUTHORIZED_BAD_CODE(false); NOT_AUTHORIZED_BAD_CODE(false);