16 return (
bool) preg_match(
'/[0-9]/', $value->toString());
19 return "Password must contain numbers.";
A constraint encodes some resrtictions on values.
A password is used as part of credentials for authentication.
__construct(Container $dic, ilPlugin $plugin)
__construct(Data\Factory $data_factory, \ilLanguage $lng)