Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: Ia5871665d734270c25f8f80f2bb2dcb426703ca2
int PasswordPolicy::setQuality(int quality)
{
try {
+ PasswordManager::QualityType type = getPasswordQualityType(quality);
if (!setPasswordPolicy(context, "password-quality", quality)) {
return 0;
}
}
PasswordManager passwordManager(context.getPeerUid());
- passwordManager.setQuality(getPasswordQualityType(quality));
+ passwordManager.setQuality(type);
if (quality == DPM_PASSWORD_QUALITY_SIMPLE_PASSWORD) {
passwordManager.setMinimumLength(SIMPLE_PASSWORD_LENGTH);