jedireza/aqua

Update `user.name` reference in `Account`s and `Admin`s collections when a `user.username` is updated

iraniamir opened this issue · 1 comments

Um i think we use user.name in account or admin collection with index to fetch them with username instead of _id sometimes but if user update username we have no any code to edit his username in his roles !
am i wrong ?!

Correct. We should update admin.user.name and account.user.name when the username changes.