|
@@ -131,7 +131,9 @@ class User extends Api
|
|
|
$email = input('email');
|
|
|
$emailcaptcha = input('emailcaptcha');
|
|
|
|
|
|
- if (!$firstname || !$lastname || !$mobile || !$captcha || !$email || !$emailcaptcha ) {
|
|
|
+ $password = input('password');
|
|
|
+
|
|
|
+ if (!$firstname || !$lastname || !$mobile || !$captcha || !$email || !$emailcaptcha || !$password) {
|
|
|
$this->error(__('Invalid parameters'));
|
|
|
}
|
|
|
|
|
@@ -142,7 +144,7 @@ class User extends Api
|
|
|
$this->error(__('Mobile is incorrect'));
|
|
|
}*/
|
|
|
|
|
|
- $password = input('password');
|
|
|
+
|
|
|
|
|
|
$fullmobile = $countrycode.$mobile;
|
|
|
$ret = Sms::check($fullmobile, $captcha, 'register');
|
|
@@ -163,6 +165,7 @@ class User extends Api
|
|
|
'age' => input('age',''),
|
|
|
'weight' => input('weight',''),
|
|
|
'address' => input('address',''),
|
|
|
+ 'knowus' => input('knowus','')
|
|
|
];
|
|
|
$ret = $this->auth->register('', $password, $email, $fullmobile, $extend);
|
|
|
if ($ret) {
|