update session config to allow unbindin emails to not be sent.

This commit is contained in:
eyecreate
2019-10-21 15:28:30 -04:00
committed by GitHub
parent 36f22e5ca6
commit 6e52a509db

View File

@@ -47,6 +47,8 @@ public class SessionConfig {
public static class PolicyUnbind { public static class PolicyUnbind {
private boolean enabled = true; private boolean enabled = true;
private boolean notifications = true;
public boolean getEnabled() { public boolean getEnabled() {
return enabled; return enabled;
@@ -55,11 +57,20 @@ public class SessionConfig {
public void setEnabled(boolean enabled) { public void setEnabled(boolean enabled) {
this.enabled = enabled; this.enabled = enabled;
} }
public boolean shouldNotify() {
return notifications;
}
public void setNotifications(boolean notifications) {
this.notifications = notifications;
}
} }
public Policy() { public Policy() {
validation.enabled = true; validation.enabled = true;
unbind.enabled = true; unbind.enabled = true;
unbind.notifications = true;
} }
private PolicyTemplate validation = new PolicyTemplate(); private PolicyTemplate validation = new PolicyTemplate();