mirror of
https://github.com/bitwarden/mobile
synced 2025-12-31 07:33:46 +00:00
add auth-email header to auth request (#1414)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Bit.Core.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
|
||||
namespace Bit.Core.Models.Request
|
||||
@@ -78,5 +79,13 @@ namespace Bit.Core.Models.Request
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
public void AlterIdentityTokenHeaders(HttpRequestHeaders headers)
|
||||
{
|
||||
if (MasterPasswordHash != null && Email != null)
|
||||
{
|
||||
headers.Add("Auth-Email", Email);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user