Skip to content

Commit 306a86a

Browse files
committed
Default MANDATORY_USER_REGISTRATION to disabled
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
1 parent c8ba7c8 commit 306a86a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

client/src/com/mirth/connect/client/ui/BrandingConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class BrandingConstants {
4242
public static final ImageIcon LOGO_GRAY = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/branding/oie_white_logo_banner_text_215x30.png"));
4343

4444
public static final boolean CENTRAL_USER_REGISTRATION = true;
45+
public static final boolean MANDATORY_USER_REGISTRATION = false;
4546
public static final boolean CHECK_FOR_NOTIFICATIONS = true;
4647
public static final boolean SEND_USAGE_STATISTICS = true;
4748
}

client/src/com/mirth/connect/client/ui/FirstLoginDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public FirstLoginDialog(User currentUser) {
4949
userEditPanel.setUser(this, currentUser);
5050
userEditPanel.setRequiredFields(false, true);
5151
if (BrandingConstants.CENTRAL_USER_REGISTRATION) {
52-
if (currentUser.getId() == 1) {
52+
if (currentUser.getId() == 1 && BrandingConstants.MANDATORY_USER_REGISTRATION) {
5353
// When CENTRAL_USER_REGISTRATION is set, registration is compulsatory
5454
// for the first user of the system.
5555
registerCheckBox.setVisible(false);

0 commit comments

Comments
 (0)