Skip to content

Added change password card to profile panel.#1464

Merged
balloob merged 3 commits intohome-assistant:masterfrom
jeradM:change-pw
Jul 19, 2018
Merged

Added change password card to profile panel.#1464
balloob merged 3 commits intohome-assistant:masterfrom
jeradM:change-pw

Conversation

@jeradM
Copy link
Copy Markdown
Member

@jeradM jeradM commented Jul 18, 2018

required
auto-validate
error-message='Required'
></paper-input>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import '../../resources/ha-style.js';
import EventsMixin from '../../mixins/events-mixin.js';

let registeredDialog = false;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it needs to be a dialog. Just a card on this page. It should still be its own component

},

_currentPassword: String,
_newPassword: String,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also include a type password again box and confirm in JavaScript that they are the same

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So instead of a button to unmask the password?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not do an unmask button, that is more a login experience thing. I would just have 2 inputs: _newPassword1 and _newPassword2

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, so no current password verification? Or keep that too?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the current password verification.

this.fire('show-change-password', {
hass: this.hass,
dialogClosedCallback: async () => {
this.fire('reload-users');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a user management only event. Once password changed successfully, just a message above the form will do: Password successfully changed!

@balloob
Copy link
Copy Markdown
Member

balloob commented Jul 18, 2018

Also make sure to include a screenshot of how it looks in your PR description.

@jeradM jeradM changed the title WIP: Added change password dialog to profile panel. WIP: Added change password card to profile panel. Jul 18, 2018
@jeradM jeradM changed the title WIP: Added change password card to profile panel. Added change password card to profile panel. Jul 19, 2018
@balloob balloob merged commit 708447b into home-assistant:master Jul 19, 2018
@ghost ghost removed the in progress label Jul 19, 2018
@ghost
Copy link
Copy Markdown

ghost commented Jul 19, 2018

Please also add translation strings for this PR to we can start translate...

@jeradM jeradM deleted the change-pw branch August 24, 2018 15:19
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants