mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
null checks
This commit is contained in:
parent
f69b789346
commit
12e6c1677b
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user