Skip to content

Commit

Permalink
9422-email-domains-interstitial-oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Nov 4, 2024
1 parent e165c89 commit e501ad9
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions orcid-core/src/main/java/org/orcid/core/togglz/Features.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
import org.togglz.core.annotation.Label;
import org.togglz.core.context.FeatureContext;


public enum Features implements Feature {

@Label("OAUTH DOMAINS INTERSTITIAL")
OAUTH_DOMAINS_INTERSTITIAL,

@Label("New Relic Browser Monitoring")
NEW_RELIC_BROWSER_MONITORING,

@Label("Homepage Headless WordPress")
WORDPRESS_HOME_PAGE,

Expand All @@ -24,16 +26,16 @@ public enum Features implements Feature {

@Label("HelpHero")
ORCID_ANGULAR_HELP_HERO,

@Label("Stop caching works when doing bulk reads")
READ_BULK_WORKS_DIRECTLY_FROM_DB,
READ_BULK_WORKS_DIRECTLY_FROM_DB,

@Label("Store failing login attempts to the database")
ENABLE_ACCOUNT_LOCKOUT,

@Label("Do not lock the account on the UI when the lockout threshold is exceeded")
ACCOUNT_LOCKOUT_SIMULATION,
ACCOUNT_LOCKOUT_SIMULATION,

@Label("Send verification emails for 2, 7 and 28 days. If disabled 2 days only verification emails will be sent.")
SEND_ALL_VERIFICATION_EMAILS,

Expand All @@ -44,8 +46,8 @@ public enum Features implements Feature {
DELETE_EVENTS,

@Label("Track public events stats ")
PAPI_EVENTS,
PAPI_EVENTS,

@Label("Enable summary endpoint in the Members API")
MAPI_SUMMARY_ENDPOINT,

Expand All @@ -54,10 +56,10 @@ public enum Features implements Feature {

@Label("Enable email domains in the UI")
EMAIL_DOMAINS_UI,

@Label("Enforce rate limiting for public API when disabled the rate monitoring is on. When disabled is the mode is monitoring only.")
ENABLE_PAPI_RATE_LIMITING;

public boolean isActive() {
return FeatureContext.getFeatureManager().isActive(this);
}
Expand Down

0 comments on commit e501ad9

Please sign in to comment.