Add external change password link

Hello,
I am using Discourse with a WordPress website where WordPress is the SSO provider.
As WordPress is the SSO provider, you can’t change your password within the Discourse user settings.
Would it be possible to add a button, in the Account settings, which links to my main website to that the user can change his password?
Here is a mockup of what I would like to have:

So any ideas about how this would be possible?

This isn’t below, but would appear above all of the preference pages, and it is what we use for our SSO scenario (I should really turn this into a howto)

3 Likes

Hmmm… I’m not 100% sure that setting/template should be loaded when SSO is enabled, so overriding it might not do anything. I know on our Production instance (which isn’t latest), we do not see the Change Password field/setting in our User Preferences.

cc @neil

2 Likes

@cpradio I removed the lines which hide the password field when SSO is enabled.
They are also located in the account.hbs file.

1 Like

From your posts it sounds like you edited files directly - please don’t do that! 1, if you edited them via the ssh they will simply be overwritten upon the next update. 2, if you edited them in a way that replaced the files upon each update, your going to break something. Please be sure to make changes to Discourse via customizations in /admin or via a plugin.

4 Likes

The account.hbs template will be shown even if SSO is enabled. The fields might not be editable (depending on your settings), but you’ll be able to see their values.

2 Likes

This topic was automatically closed after 2590 days. New replies are no longer allowed.