Open tankerkiller125 opened 4 years ago
A good first step for anyone wanting to tackle this issue would be to create some mock ups for us to go over and give feedback on.
Additional thing I realized just now following https://discuss.flarum.org/d/24266-admin-cannot-update-own-mail-or-set-a-password on the forums.
Currently if we let admins edit their own email, it actually results in an email change validation being sent because of the way we built the API. So this results in unexpected behavior, which might be why we were hiding the email field until now in the edit modal https://github.com/flarum/core/blob/d492579638fb52dafbfe65f1f36a95eb6047f7f3/src/User/Command/EditUserHandler.php#L76
I'd suggest maybe we create a new attribute name or even a new endpoint to request the email change with validation, that way the "normal" API endpoint can be used only for saving a new email directory.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum. In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!
Not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum. In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!
Shoo bot
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum. In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!
Please take a look at https://github.com/flarum/core/pull/2113#discussion_r441532304 Notably we're looking to make it so that the admin can choose to send a reset email notification to the user or bypass it and just force reset it.