Change email address button shows even when edit email is off

I am working with a CDCK hosted client who is configuring oauth2.

We’ve got it set up so that the create account dialog is automatically bypassed and now new accounts authenticated by the oauth2 server are created automatically. All other login mechanisms are turned off.

During testing they don’t want anyone to log in without approval, so I turned on “must approve users”. This works as expected except they still get a “change email address” button. “email editable” is turned off and oauth2 overrides email is turned on.

I suggested hiding the button with CSS, but this seems like a bug, though it’s arguably a feature request, as it’s more of an annoyance than a can’t-use-discourse issue.

1 Like

This is already done in the commit

https://github.com/discourse/discourse/commit/c7781f11393b3edd53cc148f28ebce87d2efa426

4 Likes