mitodl/open-discussions

Account settings page should always display forgot password option

collinpreston opened this issue · 0 comments

Steps to Reproduce

When FEATURE_KEYCLOAK_ENABLED=True and logged in, I should always see the button to change my password (

case "email":
return (
<div key={index} className="account-settings-row">
<h5>MIT Open</h5>
{SETTINGS.FEATURES.KEYCLOAK_ENABLED ? (
<a href={PASSWORD_CHANGE_URL}>Change Password</a>
) : (
<Link to={PASSWORD_CHANGE_URL}>Change Password</Link>
)}
</div>
)
) and not other authentication mechanisms.

Expected Behavior

Change password is always displayed.

Actual Behavior

MicroMasters and Touchstone at MIT are displayed.

Screenshot 2023-10-13 at 8 42 04 AM