protected function setUserPassword(array & $users)
    {
        if (!empty($users)) {
            if (Arr::isAssoc($users)) {
                $users = [$users];
            }

            foreach ($users as $i => $user) {
                /** @noinspection PhpUndefinedMethodInspection */
                $model = User::find($user['id']);
                if (!empty($model)) {
                    $users[$i]['password'] = $model->password;
                }
            }
        }
    }
protected function setUserPassword(array & $users)
    {
        if (!empty($users)) {
            if (Arr::isAssoc($users)) {
                $users = [$users];
            }

            foreach ($users as $i => $user) {
                /** @noinspection PhpUndefinedMethodInspection */
                $model = User::find($user['id']);
                if (!empty($model)) {
                    $users[$i]['password'] = $model->password;
                }
            }
        }
    }
protected function setUserPassword ( array & $ users ) { if ( ! empty ( $ users ) ) { if ( Arr :: isAssoc ( $ users ) ) { $ users = [ $ users ] ; } foreach ( $ users as $ i => $ user ) { /** @noinspection PhpUndefinedMethodInspection */ $ model = User :: find ( $ user [ 'id' ] ) ; if ( ! empty ( $ model ) ) { $ users [ $ i ] [ 'password' ] = $ model -> password ; } } } }
Sets user password encrypted when package is secured with a password.

@param array $users

@throws \DreamFactory\Core\Exceptions\BadRequestException
Sets user password encrypted when package is secured with a password .