Merge branch 'ICU-580-set-a-new-password' into ICU-580-remove-password-attribute-from-account-model

This commit is contained in:
Susmitha Girumala authored and GitHub committed 2020-09-16 09:42:17 -04:00
commit 3929591690
2 files changed
+4 -4

No files matched your search

@@ -12,14 +12,14 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountSettingsRout
// =actions
/**
* Save password for current account.
* Set password for current account.
* @param {AccountModel} account
* @param {string} password
*/
@action
async savePassword(account, password) {
async setPassword(account) {
try {
await account.savePassword(password);
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}}
/>