null checks

This commit is contained in:
DESKTOP-GENO133\IvanPlex 2024-03-02 07:13:13 -07:00
parent f69b789346
commit 12e6c1677b

View File

@ -48,6 +48,10 @@ namespace CarCareTracker.Helper
{
var rootUsername = _config["UserNameHash"];
var rootPassword = _config["UserPasswordHash"];
if (string.IsNullOrWhiteSpace(rootUsername) || string.IsNullOrWhiteSpace(rootPassword))
{
return false;
}
return username == rootUsername && password == rootPassword;
}
public string GetServerLanguage()