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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user