Commit two totp changes from before
This commit is contained in:
parent
d3bdeb6d50
commit
fa5aee848a
@ -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";
|
||||||
|
|
||||||
}
|
}
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user