passwords handling now safe
bin verfify and fix code
This commit is contained in:
@@ -206,6 +206,27 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Verify Meter password file
|
||||
/// generated passowrd file has to be present
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <remarks date="2023-JAn-24" author="Thomas Wiedebusch&Roalnd Drabesch">
|
||||
/// - Initial.
|
||||
/// </remarks>
|
||||
|
||||
public Boolean VerifyMeterPwdFile()
|
||||
{
|
||||
if (_hashedPasswordFile == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return _meterFile.VerifyMeterFile(StrPasswordFileName, _hashedPasswordFile);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Erase the meter password file
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user