Encode auth email for unicode email support (#1491)

This commit is contained in:
Matt Gibson 2021-08-10 12:48:51 -04:00 committed by GitHub
parent 2f2fa8a25b
commit f79ff3fd63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
using Bit.Core.Enums;
using Bit.Core.Utilities;
using System;
using System.Collections.Generic;
using System.Net.Http.Headers;
@ -91,7 +92,7 @@ namespace Bit.Core.Models.Request
{
if (MasterPasswordHash != null && Email != null)
{
headers.Add("Auth-Email", Email);
headers.Add("Auth-Email", CoreHelpers.Base64UrlEncode(Encoding.UTF8.GetBytes(Email)));
}
}
}