Permalink
Browse files

Added rememberMe option to Tenant to enable/disable it in the Keycloa…

…k realm
  • Loading branch information...
Miggets7 committed Feb 5, 2019
1 parent 4b86fe1 commit 83b5cb8b142c3a01bcad8bb5fc4515b023cf7623
Showing with 11 additions and 0 deletions.
  1. +11 −0 model/src/main/java/org/openremote/model/security/Tenant.java
@@ -63,6 +63,9 @@
@Transient
protected Boolean duplicateEmailsAllowed;

@Transient
protected Boolean rememberMe;

@JsIgnore
public Tenant() {
this(null, null, null, null);
@@ -140,6 +143,14 @@ public void setDuplicateEmailsAllowed(Boolean duplicateEmailsAllowed) {
this.duplicateEmailsAllowed = duplicateEmailsAllowed;
}

public Boolean getRememberMe() {
return rememberMe;
}

public void setRememberMe(Boolean rememberMe) {
this.rememberMe = rememberMe;
}

public boolean isActive(double currentTimeMillis) {
return enabled != null && enabled
&& (notBefore == null || notBefore == 0 || notBefore <= (currentTimeMillis/1000));

0 comments on commit 83b5cb8

Please sign in to comment.