fix: Use updated setPassword method instead of savePassword

This commit is contained in:
Susmitha Girumala committed 2020-09-15 18:16:07 -04:00
1 parent 40d1e0ea7a
commit fa9706c7b1
2 files changed
+4 -4

No files matched your search

@@ -12,13 +12,13 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountSettingsRout
// =actions
/**
* Save password for current account.
* Set password for current account.
* @param {AccountModel} account
*/
@action
async savePassword(account) {
async setPassword(account) {
try {
await account.savePassword();
await account.setPassword();
await this.replaceWith('scopes.scope.auth-methods.auth-method.accounts.account.settings');
this.notify.success(
this.intl.t('notify.save-success')
@@ -2,6 +2,6 @@
<Form::Account::Password::SetPassword
@model={{@model}}
@submit={{route-action "savePassword" @model}}
@submit={{route-action "setPassword" @model}}
@cancel={{route-action "cancel" @model}}
/>