mirror of
https://github.com/bitwarden/mobile
synced 2024-12-29 10:13:48 +01:00
[PS-2507] Enable firefox relay address on creation (#2474)
* Enable firefox relay address on creation Adding a body (json) to the request and setting enabled to true. Additionally the description is set to "Generated by Bitwarden." to mimick the behaviour of the other clients * Add missing encoding and mediaType * Replace JObject with anonymous type
This commit is contained in:
parent
0c4b88e562
commit
3a0510d6b4
@ -767,6 +767,12 @@ namespace Bit.Core.Services
|
||||
break;
|
||||
case ForwardedEmailServiceType.FirefoxRelay:
|
||||
requestMessage.Headers.Add("Authorization", $"Token {config.ApiToken}");
|
||||
requestMessage.Content = new StringContent(JsonConvert.SerializeObject(
|
||||
new
|
||||
{
|
||||
enabled = true,
|
||||
description = "Generated by Bitwarden."
|
||||
}), Encoding.UTF8, "application/json");
|
||||
break;
|
||||
case ForwardedEmailServiceType.SimpleLogin:
|
||||
requestMessage.Headers.Add("Authentication", config.ApiToken);
|
||||
|
Loading…
Reference in New Issue
Block a user