Skip to content

Commit

Permalink
UserManagementService .CreateUser replaces '@' with '%40' #91
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenba committed Oct 19, 2019
1 parent 76b05f3 commit 5967e42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/YouTrackSharp/Management/UserManagementService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ public async Task CreateUser(string username, string fullName, string email, str
}
if (!string.IsNullOrEmpty(email))
{
queryString.Add("email", Uri.EscapeDataString(email));
queryString.Add("email", email);
}
if (!string.IsNullOrEmpty(jabber))
{
queryString.Add("jabber", Uri.EscapeDataString(jabber));
queryString.Add("jabber", jabber);
}
if (!string.IsNullOrEmpty(password))
{
Expand All @@ -119,11 +119,11 @@ public async Task UpdateUser(string username, string fullName = null, string ema
}
if (!string.IsNullOrEmpty(email))
{
queryString.Add("email", Uri.EscapeDataString(email));
queryString.Add("email", email);
}
if (!string.IsNullOrEmpty(jabber))
{
queryString.Add("jabber", Uri.EscapeDataString(jabber));
queryString.Add("jabber", jabber);
}
if (!string.IsNullOrEmpty(password))
{
Expand Down
2 changes: 1 addition & 1 deletion src/YouTrackSharp/YouTrackSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Copyright>JetBrains</Copyright>
<RepositoryUrl>https://github.com/JetBrains/YouTrackSharp.git</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<VersionPrefix>2019.2.2</VersionPrefix>
<VersionPrefix>2019.2.3</VersionPrefix>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/YouTrackSharp.Tests/YouTrackSharp.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageIconUrl>https://raw.githubusercontent.com/JetBrains/YouTrackSharp/master/logo.png</PackageIconUrl>
<RepositoryUrl>https://github.com/JetBrains/YouTrackSharp.git</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<VersionPrefix>2019.2.2</VersionPrefix>
<VersionPrefix>2019.2.3</VersionPrefix>
<IsPackable>False</IsPackable>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
Expand Down

0 comments on commit 5967e42

Please sign in to comment.