fix: Use updated setPassword method instead of savePassword
This commit is contained in:
2 files changed
+4
-4
No files matched your search
+3
-3
@@ -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')
|
||||
|
||||
+1
-1
@@ -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}}
|
||||
/>
|
||||
Reference in new issue
Block a user