1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-29 12:55:21 +01:00

Revert PR #3393 because it was not the right solution

This reverts commit 8dd15a1ff3.

Co-authored-by: Todd Martin <>
This commit is contained in:
Todd Martin 2022-08-26 15:52:41 -04:00 committed by GitHub
parent 8dd15a1ff3
commit 33af940515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,19 +117,17 @@ export class UsernameGenerationService implements BaseUsernameGenerationService
let forwarder: Forwarder = null; let forwarder: Forwarder = null;
const forwarderOptions = new ForwarderOptions(); const forwarderOptions = new ForwarderOptions();
forwarderOptions.website = o.website;
if (o.forwardedService === "simplelogin") { if (o.forwardedService === "simplelogin") {
forwarder = new SimpleLoginForwarder(); forwarder = new SimpleLoginForwarder();
forwarderOptions.apiKey = o.forwardedSimpleLoginApiKey; forwarderOptions.apiKey = o.forwardedSimpleLoginApiKey;
forwarderOptions.website = o.website;
} else if (o.forwardedService === "anonaddy") { } else if (o.forwardedService === "anonaddy") {
forwarder = new AnonAddyForwarder(); forwarder = new AnonAddyForwarder();
forwarderOptions.apiKey = o.forwardedAnonAddyApiToken; forwarderOptions.apiKey = o.forwardedAnonAddyApiToken;
forwarderOptions.anonaddy.domain = o.forwardedAnonAddyDomain; forwarderOptions.anonaddy.domain = o.forwardedAnonAddyDomain;
forwarderOptions.website = o.website;
} else if (o.forwardedService === "firefoxrelay") { } else if (o.forwardedService === "firefoxrelay") {
forwarder = new FirefoxRelayForwarder(); forwarder = new FirefoxRelayForwarder();
forwarderOptions.apiKey = o.forwardedFirefoxApiToken; forwarderOptions.apiKey = o.forwardedFirefoxApiToken;
forwarderOptions.website = o.website;
} else if (o.forwardedService === "fastmail") { } else if (o.forwardedService === "fastmail") {
forwarder = new FastmailForwarder(); forwarder = new FastmailForwarder();
forwarderOptions.apiKey = o.forwardedFastmailApiToken; forwarderOptions.apiKey = o.forwardedFastmailApiToken;