From a4fbd521e36b4a21fdcd4e08888798b1537ad1ce Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 18 Dec 2017 13:58:36 -0500 Subject: [PATCH] device-type header on login --- src/App/Repositories/ConnectApiRepository.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App/Repositories/ConnectApiRepository.cs b/src/App/Repositories/ConnectApiRepository.cs index 4b1e5c9d0..503473cfc 100644 --- a/src/App/Repositories/ConnectApiRepository.cs +++ b/src/App/Repositories/ConnectApiRepository.cs @@ -8,6 +8,7 @@ using Plugin.Connectivity.Abstractions; using Newtonsoft.Json.Linq; using System.Collections.Generic; using Bit.App.Enums; +using Bit.App.Utilities; namespace Bit.App.Repositories { @@ -38,6 +39,9 @@ namespace Bit.App.Repositories Content = new FormUrlEncodedContent(requestObj.ToIdentityTokenRequest()) }; + requestMessage.Headers.Add("Device-Type", ((int)Helpers.OnPlatform(iOS: DeviceType.iOS, + Android: DeviceType.Android, Windows: DeviceType.UWP)).ToString()); + try { var response = await client.SendAsync(requestMessage).ConfigureAwait(false);