# Add external change password link

**URL:** https://meta.discourse.org/t/add-external-change-password-link/62216
**Category:** WordPress
**Created:** [May 6, 2017, 12:41pm UTC](https://meta.discourse.org/t/add-external-change-password-link/62216 "2017-05-06T12:41:54Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![thecellmc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thecellmc/32/121055_2.png) [@thecellmc](https://meta.discourse.org/u/thecellmc)
#### Post date: [May 6, 2017, 12:41pm UTC](https://meta.discourse.org/t/add-external-change-password-link/62216/1 "2017-05-06T12:41:54Z")

</div>

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:

 ![](https://global.discourse-cdn.com/meta/original/3X/b/5/b53c296e03b47b000e69cd22e71252f66343a484.png)

So any ideas about how this would be possible?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [May 6, 2017, 12:57pm UTC](https://meta.discourse.org/t/add-external-change-password-link/62216/2 "2017-05-06T12:57:46Z")

</div>

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)

> [@Rebuilding User Preferences](https://meta.discourse.org/t/rebuilding-user-preferences/61675/20):
>
> Yes, under Messages, you will have Archive for admins, moderators, and staff that are indented. There is for all pages: .user-navigation .preferences-nav .nav-account { display: none; } /\* Account \*/ .user-navigation .preferences-nav .nav-profile { display: none; } /\* Profile \*/ .user-navigation .preferences-nav .nav-emails { display: none; } /\* Emails \*/ .user-navigation .preferences-nav .nav-notifications { display: none; } /\* Notifications \*/ .user-navigation .preferences-nav .nav-categor…

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [May 6, 2017, 1:35pm UTC](https://meta.discourse.org/t/add-external-change-password-link/62216/4 "2017-05-06T13:35:00Z")

</div>

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

---

<div class="post-metadata">

### Author: ![thecellmc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thecellmc/32/121055_2.png) [@thecellmc](https://meta.discourse.org/u/thecellmc)
#### Post date: [May 6, 2017, 1:37pm UTC](https://meta.discourse.org/t/add-external-change-password-link/62216/5 "2017-05-06T13:37:24Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [May 6, 2017, 5:04pm UTC](https://meta.discourse.org/t/add-external-change-password-link/62216/6 "2017-05-06T17:04:00Z")

</div>

> [@thecellmc](#):
>
> I edited the account.hbs file in the password settings to this:

> [@thecellmc](#):
>
> I removed the lines which hide the password field when SSO is enabled.  
> They are also located in the account.hbs file.

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.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [May 6, 2017, 8:16pm UTC](https://meta.discourse.org/t/add-external-change-password-link/62216/7 "2017-05-06T20:16:52Z")

</div>

> [@cpradio](#):
>
> I’m not 100% sure that setting/template should be loaded when SSO is enabled, so overriding it might not do anything.

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.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:44pm UTC](https://meta.discourse.org/t/add-external-change-password-link/62216/8 "2024-06-08T12:44:54Z")

</div>

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