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