* user: calling the checkBeforeCreateOrEdit instead of the checkBeforeCreate method.

This commit is contained in:
liugang
2023-11-23 16:22:19 +08:00
parent 42a92e90fd
commit b1934c0436
+1 -1
View File
@@ -496,7 +496,7 @@ class user extends control
->setIF($this->post->password1 != false, 'password', substr($this->post->password1, 0, 32))
->get();
$this->userZen->checkBeforeCreate($user);
$this->userZen->checkBeforeCreateOrEdit($user);
$userID = $this->user->create($user);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));