mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
* [PM-14419] Introduce the change-login-password service and its default implementation * [PM-14419] Use the change login password service on the at-risk passwords page * [PM-14419] Add unit tests * [PM-14419] Use existing fixed test environment * [PM-14419] Add mock implementation for ChangeLoginPasswordService in at-risk passwords tests * [PM-14419] Linter
11 lines
517 B
TypeScript
11 lines
517 B
TypeScript
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
|
|
|
export abstract class ChangeLoginPasswordService {
|
|
/**
|
|
* Attempts to find a well-known change password URL for the given cipher. Only works for Login ciphers with at
|
|
* least one http/https URL. If no well-known change password URL is found, the first URL is returned.
|
|
* Non-Login ciphers and Logins with no valid http/https URLs return null.
|
|
*/
|
|
abstract getChangePasswordUrl(cipher: CipherView): Promise<string | null>;
|
|
}
|