1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-10100] Remove auto password generation (#10355)

* [PM-10100] Remove initial password generation on new Login ciphers

* [PM-10100] Update password help text

* [PM-10100] Fix linter
This commit is contained in:
Shane Melton
2024-08-07 12:57:05 -07:00
committed by GitHub
parent 0b6701d3f8
commit 600c8de129
9 changed files with 50 additions and 24 deletions

View File

@@ -52,6 +52,11 @@ export class LoginDetailsSectionComponent implements OnInit {
totp: [""],
});
/**
* Flag indicating whether a new password has been generated for the current form.
*/
newPasswordGenerated: boolean;
/**
* Whether the TOTP field can be captured from the current tab. Only available in the browser extension.
*/
@@ -148,7 +153,7 @@ export class LoginDetailsSectionComponent implements OnInit {
private async initNewCipher() {
this.loginDetailsForm.patchValue({
username: this.cipherFormContainer.config.initialValues?.username || "",
password: await this.generationService.generateInitialPassword(),
password: "",
});
}
@@ -193,6 +198,7 @@ export class LoginDetailsSectionComponent implements OnInit {
if (newPassword) {
this.loginDetailsForm.controls.password.patchValue(newPassword);
this.newPasswordGenerated = true;
}
};