mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge branch '1.5.x' into fix-limit-failed-webhook-attempts
This commit is contained in:
@@ -20,7 +20,7 @@ class Password extends Validator
|
||||
*/
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Password must be at least 8 characters';
|
||||
return 'Password must be between 8 and 256 characters long.';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -40,6 +40,10 @@ class Password extends Validator
|
||||
return false;
|
||||
}
|
||||
|
||||
if (\strlen($value) > 256) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ class PasswordDictionary extends Password
|
||||
*/
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Password must be at least 8 characters and should not be one of the commonly used password.';
|
||||
return 'Password must be between 8 and 265 characters long, and should not be one of the commonly used password.';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user