@@ -123,10 +123,7 @@ class User extends Api
if ($mobile && !Validate::regex($mobile, "^1\d{10}$")) {
$this->error(__('Mobile is incorrect'));
}
-// $ret = Sms::check($mobile, $code, 'register');
-// if (!$ret) {
-// $this->error(__('Captcha is incorrect'));
-// }
+
$ret = $this->auth->register($username, $password, $email, $mobile, []);
if ($ret) {
$data = ['userinfo' => $this->auth->getUserinfo()];