diff --git a/src/gausskernel/optimizer/commands/user.cpp b/src/gausskernel/optimizer/commands/user.cpp index 7115054fc..ae352ad88 100644 --- a/src/gausskernel/optimizer/commands/user.cpp +++ b/src/gausskernel/optimizer/commands/user.cpp @@ -5911,6 +5911,7 @@ Datum calculate_encrypted_combined_password(const char* password, const char* ro errno_t rc = EOK; /* For PG ecological compatibility, we stored both sha256 and md5 password. */ + /* the encrypted method of sha256 */ if (!pg_sha256_encrypt(password, salt_string, strlen(salt_string), @@ -5921,7 +5922,7 @@ Datum calculate_encrypted_combined_password(const char* password, const char* ro securec_check(rc, "\0", "\0"); ereport(ERROR, (errcode(ERRCODE_INVALID_PASSWORD), errmsg("first stage encryption password failed"))); } - + /* the encrypted method of md5 */ if (!pg_md5_encrypt(password, rolname, strlen(rolname), encrypted_md5_password)) { rc = memset_s(encrypted_md5_password, MD5_PASSWD_LEN + 1, 0, MD5_PASSWD_LEN + 1); securec_check(rc, "\0", "\0");