More RST fixes

This commit is contained in:
Pinga 2025-04-30 12:39:10 +03:00
parent b150d95b36
commit b11a80e0fb
7 changed files with 94 additions and 41 deletions

View file

@ -318,8 +318,8 @@ function processContactUpdate($conn, $db, $xml, $clid, $database_type, $trans) {
$authInfo_pw = (string) $contactUpdate->chg->authInfo->pw;
if ($authInfo_pw) {
if ((strlen($authInfo_pw) < 6) || (strlen($authInfo_pw) > 16)) {
sendEppError($conn, $db, 2005, 'Password needs to be at least 6 and up to 16 characters long', $clTRID, $trans);
if ((strlen($authInfo_pw) < 6) || (strlen($authInfo_pw) > 64)) {
sendEppError($conn, $db, 2005, 'Password needs to be at least 6 and up to 64 characters long', $clTRID, $trans);
return;
}
@ -1349,8 +1349,8 @@ function processDomainUpdate($conn, $db, $xml, $clid, $database_type, $trans) {
$authInfo_pw = (string)$authInfo_pw_elements[0];
if ($authInfo_pw) {
if (strlen($authInfo_pw) < 6 || strlen($authInfo_pw) > 16) {
sendEppError($conn, $db, 2005, 'Password needs to be at least 6 and up to 16 characters long', $clTRID, $trans);
if (strlen($authInfo_pw) < 6 || strlen($authInfo_pw) > 64) {
sendEppError($conn, $db, 2005, 'Password needs to be at least 6 and up to 64 characters long', $clTRID, $trans);
return;
}