1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[PM-5085] Create InputPasswordComponent (#9630)

* setup for InputPasswordComponent and basic story

* add all input fields

* add translated error messages

* update validation

* add password-callout

* update hint text

* use PolicyService in component

* setup SetPasswordComponent

* remove div

* add default button text

* add mocks for InputPassword storybook

* simplify ngOnInit

* change param and use PolicyApiService

* check for breaches and validate against policy

* user toastService

* use useValue for mocks

* hash before emitting

* validation cleanup and use PreloadedEnglishI18nModule

* add ngOnDestroy

* create validateFormInputsDoNotMatch fn

* update validateFormInputsComparison and add deprecation jsdocs

* rename validator fn

* fix bugs in validation fn

* cleanup and re-introduce services/logic

* toggle password inputs together

* update hint help text

* remove SetPassword test

* remove master key creation / hashing

* add translations to browser/desktop

* mock basic password-strength functionality

* add check for controls

* hash before emitting

* type the EventEmitter

* use DEFAULT_KDF_CONFIG

* emit master key

* clarify comment

* update password mininum help text to match org policy requirement
This commit is contained in:
rr-bw
2024-06-17 14:56:24 -07:00
committed by GitHub
parent 75615902a3
commit 2a0e21b4bb
8 changed files with 534 additions and 3 deletions

View File

@@ -49,6 +49,19 @@
"masterPassHintDesc": {
"message": "A master password hint can help you remember your password if you forget it."
},
"masterPassHintText": {
"message": "If you forget your password, the password hint can be sent to your email. $CURRENT$/$MAXIMUM$ character maximum.",
"placeholders": {
"current": {
"content": "$1",
"example": "0"
},
"maximum": {
"content": "$2",
"example": "50"
}
}
},
"reTypeMasterPass": {
"message": "Re-type master password"
},

View File

@@ -526,6 +526,19 @@
"masterPassHint": {
"message": "Master password hint (optional)"
},
"masterPassHintText": {
"message": "If you forget your password, the password hint can be sent to your email. $CURRENT$/$MAXIMUM$ character maximum.",
"placeholders": {
"current": {
"content": "$1",
"example": "0"
},
"maximum": {
"content": "$2",
"example": "50"
}
}
},
"settings": {
"message": "Settings"
},

View File

@@ -767,6 +767,19 @@
"masterPassHintLabel": {
"message": "Master password hint"
},
"masterPassHintText": {
"message": "If you forget your password, the password hint can be sent to your email. $CURRENT$/$MAXIMUM$ character maximum.",
"placeholders": {
"current": {
"content": "$1",
"example": "0"
},
"maximum": {
"content": "$2",
"example": "50"
}
}
},
"settings": {
"message": "Settings"
},