Skip to content

CREATE DEMO USER should validate password against project password policy #137

@engalar

Description

@engalar

Problem

When creating demo users via CREATE DEMO USER, mxcli does not validate the password against the project's password policy. The command succeeds, but the Mendix runtime silently fails to create the user on startup — no error or warning is logged.

The only symptom is Login FAILED: unknown user 'xxx' at login time, which is very misleading.

Steps to Reproduce

  1. Set up a project with a strict password policy (e.g., min 12 chars, require digit, mixed case, symbol)
  2. Create a demo user with a non-compliant password:
    CREATE DEMO USER 'testuser' PASSWORD '1' (User);
  3. mxcli reports success: Created demo user: testuser
  4. Run the app — the user is never created in the database
  5. Login fails with unknown user 'testuser'

Expected Behavior

Either:

  • Validate at creation time: mxcli reads the project's password policy and rejects non-compliant passwords with a clear error
  • Warn at creation time: mxcli warns that the password may not meet the project's password policy

Environment

  • mxcli version: latest
  • Mendix version: 11.6.4
  • Password policy: MinimumLength=12, RequireDigit=true, RequireMixedCase=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions