mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-04 17:31:41 -05:00
Don't show change password link if NO_PASSWORD is used.
This commit is contained in:
parent
cb8bf164f6
commit
eb830a018c
1 changed files with 6 additions and 1 deletions
|
@ -291,7 +291,12 @@ export class LoginForm extends Tracker.Component {
|
|||
});
|
||||
}
|
||||
|
||||
if (user && formState == STATES.PROFILE && (user.services && 'password' in user.services)) {
|
||||
if (user && !_.contains([
|
||||
"EMAIL_ONLY_NO_PASSWORD",
|
||||
"USERNAME_AND_EMAIL_NO_PASSWORD"
|
||||
], passwordSignupFields())
|
||||
&& formState == STATES.PROFILE
|
||||
&& (user.services && 'password' in user.services)) {
|
||||
loginButtons.push({
|
||||
id: 'switchToChangePassword',
|
||||
label: T9n.get('changePassword'),
|
||||
|
|
Loading…
Add table
Reference in a new issue