diff --git a/ui/core/app/components/form/account/password/set-password.hbs b/ui/core/app/components/form/account/password/set-password.hbs
new file mode 100644
index 000000000..3d48a1933
--- /dev/null
+++ b/ui/core/app/components/form/account/password/set-password.hbs
@@ -0,0 +1,32 @@
+
+
+
+ {{#if @model.errors.name}}
+
+ {{#each @model.errors.name as |error|}}
+ {{error.message}}
+ {{/each}}
+
+ {{/if}}
+
+
+
+
+
\ No newline at end of file
diff --git a/ui/core/app/router.js b/ui/core/app/router.js
index d0b1980f6..289f04d6f 100644
--- a/ui/core/app/router.js
+++ b/ui/core/app/router.js
@@ -74,7 +74,9 @@ Router.map(function () {
this.route('auth-methods', function() {
this.route('auth-method', { path: ':auth_method_id' }, function() {
this.route('accounts', function() {
- this.route('account', { path: ':account_id' }, function() {});
+ this.route('account', { path: ':account_id' }, function() {
+ this.route('settings');
+ });
this.route('new');
});
});
diff --git a/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/settings.js b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/settings.js
new file mode 100644
index 000000000..07f416dcf
--- /dev/null
+++ b/ui/core/app/routes/scopes/scope/auth-methods/auth-method/accounts/account/settings.js
@@ -0,0 +1,39 @@
+import Route from '@ember/routing/route';
+import { action } from '@ember/object';
+import { inject as service } from '@ember/service';
+
+export default class ScopesScopeAuthMethodsAuthMethodAccountsAccountSettingsRoute extends Route {
+
+ // =services
+
+ @service intl;
+ @service notify;
+
+ // =actions
+
+ /**
+ * Set password for current account.
+ * @param {AccountModel} account
+ */
+ @action
+ async setPassword(account) {
+ try {
+ await account.setPassword();
+ await this.replaceWith('scopes.scope.auth-methods.auth-method.accounts.account.settings');
+ this.notify.success(
+ this.intl.t('notify.save-success')
+ );
+ } catch (error) {
+ // TODO: replace with translated strings
+ this.notify.error(error.message, { closeAfter: null });
+ }
+ }
+
+ /**
+ * Redirect to hosts as if nothing ever happened.
+ */
+ @action
+ cancel() {
+ this.replaceWith('scopes.scope.auth-methods.auth-method.accounts.account');
+ }
+}
diff --git a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/-navigation.hbs b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/-navigation.hbs
index 24e8754b8..a7b550c26 100644
--- a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/-navigation.hbs
+++ b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/-navigation.hbs
@@ -2,4 +2,7 @@
{{t 'titles.details'}}
+
+ {{t 'titles.settings'}}
+
diff --git a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/settings.hbs b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/settings.hbs
new file mode 100644
index 000000000..c26483e46
--- /dev/null
+++ b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/settings.hbs
@@ -0,0 +1,7 @@
+
{{t 'descriptions.account-settings-overview'}}
+
+
diff --git a/ui/core/tests/integration/components/form/account/password/set-password-test.js b/ui/core/tests/integration/components/form/account/password/set-password-test.js
new file mode 100644
index 000000000..a5904574b
--- /dev/null
+++ b/ui/core/tests/integration/components/form/account/password/set-password-test.js
@@ -0,0 +1,24 @@
+import { module, test } from 'qunit';
+import { setupRenderingTest } from 'ember-qunit';
+import { render, find } from '@ember/test-helpers';
+import { hbs } from 'ember-cli-htmlbars';
+
+module('Integration | Component | form/account/password/set-password', function(hooks) {
+ setupRenderingTest(hooks);
+
+ test('it renders', async function(assert) {
+ this.submit = () => {};
+ this.cancel = () => {};
+ this.model = { type: 'password' };
+
+ await render(hbs`
+ `);
+
+ assert.ok(find('form'));
+ });
+
+});
diff --git a/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/settings-test.js b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/settings-test.js
new file mode 100644
index 000000000..ec14be2fc
--- /dev/null
+++ b/ui/core/tests/unit/routes/scopes/scope/auth-methods/auth-method/accounts/account/settings-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Route | scopes/scope/auth-methods/auth-method/accounts/account/settings', function(hooks) {
+ setupTest(hooks);
+
+ test('it exists', function(assert) {
+ let route = this.owner.lookup('route:scopes/scope/auth-methods/auth-method/accounts/account/settings');
+ assert.ok(route);
+ });
+});
diff --git a/ui/core/translations/en-us.yaml b/ui/core/translations/en-us.yaml
index c9b519363..d7e9a610b 100644
--- a/ui/core/translations/en-us.yaml
+++ b/ui/core/translations/en-us.yaml
@@ -132,6 +132,7 @@ descriptions:
no-principals-available: Principals are not available for assignment.
group-members-welcome: Users belonging to this group appear here.
no-available-users: No users are available to add to this group.
+ account-settings-overview: Set the password for current account.
accounts-welcome: No accounts are available in this auth method.
states:
info: Info