mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
Encode auth email for unicode email support (#1491)
This commit is contained in:
parent
2f2fa8a25b
commit
f79ff3fd63
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
using Bit.Core.Enums;
|
using Bit.Core.Enums;
|
||||||
|
using Bit.Core.Utilities;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http.Headers;
|
using System.Net.Http.Headers;
|
||||||
|
@ -91,7 +92,7 @@ namespace Bit.Core.Models.Request
|
||||||
{
|
{
|
||||||
if (MasterPasswordHash != null && Email != null)
|
if (MasterPasswordHash != null && Email != null)
|
||||||
{
|
{
|
||||||
headers.Add("Auth-Email", Email);
|
headers.Add("Auth-Email", CoreHelpers.Base64UrlEncode(Encoding.UTF8.GetBytes(Email)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue