- Platform policy changed.
- When max attempt is reset,
the password with the current attempt over new max attempt is not valid any more.
Change-Id: I47ffb6ec252f166a10da69072005a059401d5842
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
PasswordFileMap::iterator itPwd = m_pwdFile.find(receivedUser);
itPwd->second.setMaxAttempt(receivedAttempts);
itPwd->second.writeMemoryToFile();
- itPwd->second.resetAttempt();
- itPwd->second.writeAttemptToFile();
+ // Do not reset current attempt when max attempt is reset.
+ // It's a platform policy(2017.0327).
+ //itPwd->second.resetAttempt();
+ //itPwd->second.writeAttemptToFile();
}
void PasswordManager::setPasswordValidity(unsigned int receivedUser,