aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs b/Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs
index 3948ae1c4..896788ffc 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs
@@ -11,16 +11,16 @@ namespace Tango.MachineService.Security
{
public String Encode(T obj)
{
- String str = obj.ToJsonString();
+ String json = JsonConvert.SerializeObject(obj);
Rfc2898Cryptographer crypt = new Rfc2898Cryptographer();
- return crypt.Encrypt(str);
+ return crypt.Encrypt(json);
}
public T Decode(String token)
{
Rfc2898Cryptographer crypt = new Rfc2898Cryptographer();
- String str = crypt.Decrypt(token);
- return JsonConvert.DeserializeObject<T>(str);
+ String json = crypt.Decrypt(token);
+ return JsonConvert.DeserializeObject<T>(json);
}
}
} \ No newline at end of file