Skip to content

Commit 2f2fd26

Browse files
ldv-altbluca
authored andcommitted
pwquality: do not log password suggestions
As logging password suggestions might leak sensitive information, print it instead. Suggested-by: Yu Watanabe <[email protected]> (cherry picked from commit 0351d56) (cherry picked from commit ff63a08) (cherry picked from commit f433a28)
1 parent 5b9df25 commit 2f2fd26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/pwquality-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int suggest_passwords(void) {
132132
if (!joined)
133133
return log_oom();
134134

135-
log_info("Password suggestions: %s", joined);
135+
printf("Password suggestions: %s\n", joined);
136136
return 1;
137137
}
138138

0 commit comments

Comments
 (0)