forked from Archives/Athou_commafeed
show information about demo account if enabled
This commit is contained in:
@@ -29,4 +29,7 @@ public class ServerInfo implements Serializable {
|
||||
@ApiModelProperty(required = true)
|
||||
private boolean smtpEnabled;
|
||||
|
||||
@ApiModelProperty(required = true)
|
||||
private boolean demoAccountEnabled;
|
||||
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ public class ServerREST {
|
||||
infos.setAllowRegistrations(config.getApplicationSettings().getAllowRegistrations());
|
||||
infos.setGoogleAnalyticsCode(config.getApplicationSettings().getGoogleAnalyticsTrackingCode());
|
||||
infos.setSmtpEnabled(StringUtils.isNotBlank(config.getApplicationSettings().getSmtpHost()));
|
||||
infos.setDemoAccountEnabled(config.getApplicationSettings().getCreateDemoAccount());
|
||||
return Response.ok(infos).build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user