require environment variable to be injected for security reasons.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-11-04 11:57:27 -07:00
parent 5cdc687f6d
commit c1b361397f
3 changed files with 29 additions and 8 deletions

View File

@@ -14,6 +14,7 @@ namespace CarCareTracker.Helper
bool AuthenticateRootUser(string username, string password);
bool AuthenticateRootUserOIDC(string email);
string GetWebHookUrl();
bool GetCustomWidgetsEnabled();
string GetMOTD();
string GetLogoUrl();
string GetServerLanguage();
@@ -45,6 +46,10 @@ namespace CarCareTracker.Helper
}
return webhook;
}
public bool GetCustomWidgetsEnabled()
{
return bool.Parse(_config["LUBELOGGER_CUSTOM_WIDGETS"] ?? "false");
}
public string GetMOTD()
{
var motd = _config["LUBELOGGER_MOTD"];