Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

+3 -3
View File
@@ -47,7 +47,7 @@ class _Password extends Text
'strengthMember' => NULL,
'strengthRequest' => array(),
'htmlAutocomplete' => "current-password",
'enforceMaxLimit' => TRUE,
);
/**
@@ -87,7 +87,7 @@ class _Password extends Text
throw new \InvalidArgumentException( 'err_password_length' );
}
if ( mb_strlen( $this->value ) > 72 )
if ( $this->options['enforceMaxLimit'] and mb_strlen( $this->value ) > 72 )
{
throw new \InvalidArgumentException( 'err_password_toolong' );
}
@@ -149,7 +149,7 @@ class _Password extends Text
if ( !$valid )
{
throw new \InvalidArgumentException( 'login_err_bad_password' );
throw new \InvalidArgumentException( \IPS\Member::loggedIn()->language()->addToStack( 'login_err_bad_password', FALSE, array( 'pluralize' => array( $method->authType() ) ) ) );
}
}