1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-04 17:43:39 +00:00

[PM-18650] [PM-18640] Fix change login password service defects (#13596)

* [PM-18650] Ensure http url is returned if well-known cannot be confirmed

* [PM-18650] Modify getChangePasswordUrl logic to check each cipher URL until a valid well-known url is found
This commit is contained in:
Shane Melton
2025-03-05 11:49:54 -08:00
committed by GitHub
parent e058953e7d
commit a7643ebab0
3 changed files with 53 additions and 15 deletions

View File

@@ -4,6 +4,8 @@ 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.
* Checks each URL until the first reliable one well-known URL is found, otherwise returns the first URL.
*
* Non-Login ciphers and Logins with no valid http/https URLs return null.
*/
abstract getChangePasswordUrl(cipher: CipherView): Promise<string | null>;