* Fix bug #46356, modify passwordfield to password when batch creating the users.

This commit is contained in:
liumengyi
2024-03-04 09:57:22 +08:00
committed by caoyanyi
parent 366e8aaf1d
commit df43a84b28
2 changed files with 30 additions and 25 deletions
+5
View File
@@ -503,6 +503,11 @@ class user extends control
if(!empty($_POST))
{
$users = form::batchData($this->config->user->form->batchCreate)->get();
foreach($users as $user)
{
$user->password = $user->passwordfield;
unset($user->passwordfield);
}
$userIdList = $this->user->batchCreate($users, $this->post->verifyPassword);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));