mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
[PM-8524] Cipher Form - Edit Login Details Section (#10081)
* [PM-8524] Introduce login details section component
* [PM-8524] Add ability to remove passkey
* [PM-8524] Introduce TotpCaptureService and the Browser implementation
* [PM-8524] Tweak storybook
* [PM-8524] Add note regarding existing login view references
* [PM-8524] Fix clone mode so that a new cipher is created
* [PM-8524] Add support for generating usernames/passwords and auditing passwords
* [PM-8524] Migrate password/username generation to CipherFormGenerationService
* [PM-8524] Add optional passwordInput to BitPasswordInputToggle to support conditionally rendered password toggle buttons
* [PM-8524] Add LoginDetailsSection tests
* [PM-8524] Add BrowserTotpCaptureService tests
* Revert "[PM-8524] Add optional passwordInput to BitPasswordInputToggle to support conditionally rendered password toggle buttons"
This reverts commit e76a0ccfe8.
* [PM-8524] Add null check to password input toggle
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Service responsible for generating random passwords and usernames.
|
||||
*/
|
||||
export abstract class CipherFormGenerationService {
|
||||
/**
|
||||
* Generates a random password. Called when the user clicks the "Generate Password" button in the UI.
|
||||
*/
|
||||
abstract generatePassword(): Promise<string | null>;
|
||||
|
||||
/**
|
||||
* Generates a random username. Called when the user clicks the "Generate Username" button in the UI.
|
||||
*/
|
||||
abstract generateUsername(): Promise<string | null>;
|
||||
|
||||
/**
|
||||
* Generates an initial password for a new cipher. This should not involve any user interaction as it will
|
||||
* be used to pre-fill the password field in the UI for new Login ciphers.
|
||||
*/
|
||||
abstract generateInitialPassword(): Promise<string | null>;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Service to capture TOTP secret from a client application.
|
||||
*/
|
||||
export abstract class TotpCaptureService {
|
||||
/**
|
||||
* Captures a TOTP secret and returns it as a string. Returns null if no TOTP secret was found.
|
||||
*/
|
||||
abstract captureTotpSecret(): Promise<string | null>;
|
||||
}
|
||||
Reference in New Issue
Block a user