Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -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() ) ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user