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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user