pwquality: add old password argument to quality_check_password
This would allow to use quality_check_password() in user_record_quality_check_password() which still uses sym_pwquality_check() directly.
This commit is contained in:
@@ -790,7 +790,7 @@ static int prompt_root_password(int rfd) {
|
||||
break;
|
||||
}
|
||||
|
||||
r = quality_check_password(*a, "root", &error);
|
||||
r = quality_check_password(*a, /* old */ NULL, "root", &error);
|
||||
if (r < 0) {
|
||||
if (ERRNO_IS_NOT_SUPPORTED(r))
|
||||
log_warning("Password quality check is not supported, proceeding anyway.");
|
||||
|
||||
Reference in New Issue
Block a user