Skip to content

Password change returns 500 because username is used before it is set #1090

Closed

Description

@10done

POST /api/profile/password crashes on every valid submit. api_change_password in src/worker.py calls validate_password_strength(new_password, username) before username exists. Python raises UnboundLocalError, and the worker returns 500 Internal server error. The current password is never checked, and no confirmation email is created.

Activity

  1. 10done commented on Oct 23, 2026

    @10done
    ContributorAuthor

    Working on it !

  2. added
    project: learn
    on Nov 1, 2026
  3. transferred this issue fromon Nov 1, 2026
  4. added
    good first issue
    2026-10
    on Nov 1, 2026
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

    2026-10good first issueproject: learn

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions