int PasswordManager::isPwdValid(unsigned int ¤tAttempt, unsigned int &maxAttempt,
unsigned int &expirationTime) const
{
- if (m_pwdFile.isIgnorePeriod()) {
- LogError("Retry timeout occured.");
- return SECURITY_SERVER_API_ERROR_PASSWORD_RETRY_TIMER;
- }
-
if (!m_pwdFile.isPasswordActive()) {
LogError("Current password not active.");
return SECURITY_SERVER_API_ERROR_NO_PASSWORD;
unsigned int valid_secs = 0;
- //check retry timer
if (m_pwdFile.isIgnorePeriod()) {
LogError("Retry timeout occured.");
return SECURITY_SERVER_API_ERROR_PASSWORD_RETRY_TIMER;
{
unsigned int valid_secs = 0;
- if (m_pwdFile.isIgnorePeriod()) {
- LogError("Retry timeout occured.");
- return SECURITY_SERVER_API_ERROR_PASSWORD_RETRY_TIMER;
- }
-
if(!calculateExpiredTime(receivedDays, valid_secs))
return SECURITY_SERVER_API_ERROR_INPUT_PARAM;
return SECURITY_SERVER_API_ERROR_INPUT_PARAM;
}
- // check retry time
- if (m_pwdFile.isIgnorePeriod()) {
- LogError("Retry timeout occurred.");
- return SECURITY_SERVER_API_ERROR_PASSWORD_RETRY_TIMER;
- }
-
m_pwdFile.setMaxHistorySize(history);
m_pwdFile.writeMemoryToFile();