protected static function updateUserPassword($users)
    {
        if (!empty($users)) {
            foreach ($users as $i => $user) {
                if (isset($user['password'])) {
                    /** @type User $model */
                    $model = User::where('email', '=', $user['email'])->first();
                    $model->updatePasswordHash($user['password']);
                }
            }
        }
    }
protected static function updateUserPassword($users)
    {
        if (!empty($users)) {
            foreach ($users as $i => $user) {
                if (isset($user['password'])) {
                    /** @type User $model */
                    $model = User::where('email', '=', $user['email'])->first();
                    $model->updatePasswordHash($user['password']);
                }
            }
        }
    }
protected static function updateUserPassword ( $ users ) { if ( ! empty ( $ users ) ) { foreach ( $ users as $ i => $ user ) { if ( isset ( $ user [ 'password' ] ) ) { /** @type User $model */ $ model = User :: where ( 'email' , '=' , $ user [ 'email' ] ) -> first ( ) ; $ model -> updatePasswordHash ( $ user [ 'password' ] ) ; } } } }
Updates user password when package is secured with a password.

@param $users

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