diff --git a/ui/core/app/components/form/account/password/index.hbs b/ui/core/app/components/form/account/password/index.hbs
index 33e8a3759..e2890657e 100644
--- a/ui/core/app/components/form/account/password/index.hbs
+++ b/ui/core/app/components/form/account/password/index.hbs
@@ -54,12 +54,13 @@
@type="text"
@value={{@model.attributes.login_name}}
@label={{t "form.login_name.label"}}
- @error={{@model.errors.name}}
+ @error={{@model.errors.login_name}}
+ @helperText={{t "form.login_name.help"}}
readonly={{false}}
as |field|>
- {{#if @model.errors.name}}
+ {{#if @model.errors.login_name}}
- {{#each @model.errors.name as |error|}}
+ {{#each @model.errors.login_name as |error|}}
{{error.message}}
{{/each}}
@@ -72,13 +73,14 @@
@type="password"
@value={{this.password}}
@label={{t "form.password.label"}}
- @error={{@model.errors.name}}
+ @error={{@model.errors.password}}
+ @helperText={{t "form.password.help"}}
readonly={{false}}
autocomplete="new-password"
as |field|>
- {{#if @model.errors.name}}
+ {{#if @model.errors.password}}
- {{#each @model.errors.name as |error|}}
+ {{#each @model.errors.password as |error|}}
{{error.message}}
{{/each}}
diff --git a/ui/core/app/components/form/account/password/set-password/index.hbs b/ui/core/app/components/form/account/password/set-password/index.hbs
index 80780ccc3..d3a1f6df2 100644
--- a/ui/core/app/components/form/account/password/set-password/index.hbs
+++ b/ui/core/app/components/form/account/password/set-password/index.hbs
@@ -10,14 +10,15 @@
@name="password"
@type="password"
@value={{this.password}}
- @label={{t "form.password.label"}}
- @error={{@model.errors.name}}
+ @label={{t "form.set_password.label"}}
+ @error={{@model.errors.password}}
+ @helperText={{t "form.set_password.help"}}
readonly={{false}}
autocomplete="new-password"
as |field|>
- {{#if @model.errors.name}}
+ {{#if @model.errors.password}}
- {{#each @model.errors.name as |error|}}
+ {{#each @model.errors.password as |error|}}
{{error.message}}
{{/each}}
diff --git a/ui/core/app/routes/application.js b/ui/core/app/routes/application.js
index 387c8fef2..e54bbd206 100644
--- a/ui/core/app/routes/application.js
+++ b/ui/core/app/routes/application.js
@@ -6,6 +6,7 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { later } from '@ember/runloop';
import loading from 'ember-loading/decorator';
+import { A } from '@ember/array';
/**
* Entry route for the application.
@@ -81,7 +82,7 @@ export default class ApplicationRoute extends Route.extend(
*/
@action
error(e) {
- const isUnauthenticated = e?.errors[0]?.isUnauthenticated;
+ const isUnauthenticated = A(e?.errors)?.firstObject?.isUnauthenticated;
if (isUnauthenticated) {
this.session.invalidate();
return false;
diff --git a/ui/core/app/routes/scopes/scope/projects/project/sessions.js b/ui/core/app/routes/scopes/scope/projects/project/sessions.js
index 63b53d7db..c5f7c8004 100644
--- a/ui/core/app/routes/scopes/scope/projects/project/sessions.js
+++ b/ui/core/app/routes/scopes/scope/projects/project/sessions.js
@@ -45,8 +45,12 @@ export default class ScopesScopeProjectsProjectSessionsRoute extends Route {
return all(
sessions.map(session => hash({
session,
- user: this.store.findRecord('user', session.user_id),
- target: this.store.findRecord('target', session.target_id),
+ user: session.user_id
+ ? this.store.findRecord('user', session.user_id)
+ : null,
+ target: session.target_id
+ ? this.store.findRecord('target', session.target_id)
+ : null,
}))
);
}
diff --git a/ui/core/translations/form/en-us.yaml b/ui/core/translations/form/en-us.yaml
index 79e48056e..ed2e1e160 100644
--- a/ui/core/translations/form/en-us.yaml
+++ b/ui/core/translations/form/en-us.yaml
@@ -11,8 +11,13 @@ type:
help: The type of the resource, to help differentiate schemas
login_name:
label: Username
+ help: The username for the account
+set_password:
+ label: Password
+ help: Create a new password for the account
password:
label: Password
+ help: The password for the account
grant:
label: Grant
help: A permissions grant string for a role