use wcf\system\captcha\ICaptchaHandler;
use wcf\system\exception\UserInputException;
use wcf\system\WCF;
+use wcf\util\UserRegistrationUtil;
use wcf\util\UserUtil;
/**
try {
$this->readString('username', false, 'data');
- if (!UserUtil::isValidUsername($this->parameters['data']['username'])) {
+ if (!UserRegistrationUtil::isValidUsername($this->parameters['data']['username'])) {
throw new UserInputException('username', 'invalid');
}
if (!UserUtil::isAvailableUsername($this->parameters['data']['username'])) {
use wcf\system\user\notification\UserNotificationHandler;
use wcf\system\WCF;
use wcf\util\MessageUtil;
+use wcf\util\UserRegistrationUtil;
use wcf\util\UserUtil;
/**
try {
$this->readString('username', false, 'data');
- if (!UserUtil::isValidUsername($this->parameters['data']['username'])) {
+ if (!UserRegistrationUtil::isValidUsername($this->parameters['data']['username'])) {
throw new UserInputException('username', 'invalid');
}
if (!UserUtil::isAvailableUsername($this->parameters['data']['username'])) {