fix: update password when adding existing user to new org #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/add-member-password-ignored"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
addMemberfinds an existing user by email, it now updates theirpassword_hashwith the newly provided password before creating the membership.Root Cause
In
organizations.service.tsaddMember(), the existing-user branch (lines 141-155) only created the org membership — it never touchedpassword_hash. The password was only set in theelsebranch when creating a brand new user.Test plan
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.