1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

passwordcheck: Add test suite

Also improve one error message.

Reviewed-by: David Steele <david@pgmasters.net>
This commit is contained in:
Peter Eisentraut
2017-08-11 21:04:04 -04:00
parent 8423bf4f25
commit af7211e92d
6 changed files with 50 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ check_password(const char *username,
if (plain_crypt_verify(username, shadow_pass, username, &logdetail) == STATUS_OK)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("password must not contain user name")));
errmsg("password must not equal user name")));
}
else
{