Skip to content

Validation BUG in update_user #117

Closed

Description

@MagnusSamuelsson

In update_user there is no isset checks for $userdata['username'] and $userdata['email'].

Which means that to be able to update the user profile using this plugin, we always need to send username and email, otherwise we get PHP errors.

For example:

exception | "Whoops\\Exception\\ErrorException"
message | 'Undefined array key "username"'

Is this intentional, or a BUG?

I think it would be nice if only the field that we want to update is a requirement.

Anyhow, I solved this for our integration. And can submit a PR during the day (since we are in different timezones, I hope it's okay not to wait)

Activity

  1. dmitriim commented on Dec 21, 2025

    @dmitriim
    Member

    @MagnusSamuelsson I'd say it's a bug.

  2. dmitriim commented on Dec 22, 2025

    @dmitriim
    Member

    Fixed via #118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions