fix-messages: IDE0063

This commit is contained in:
SuhorukovAnton 2020-09-29 13:34:12 +03:00
parent 1da0de1200
commit 151d8e162a

View File

@ -137,11 +137,9 @@ namespace ASC.Core.Common.Notify
var buf = id.Concat(d).ToArray(); var buf = id.Concat(d).ToArray();
using (var sha = new SHA256CryptoServiceProvider()) using var sha = new SHA256CryptoServiceProvider();
{ return Convert.ToBase64String(sha.ComputeHash(buf))
return Convert.ToBase64String(sha.ComputeHash(buf)) .Replace('+', '-').Replace('/', '_').Replace("=", ""); // make base64 url safe
.Replace('+', '-').Replace('/', '_').Replace("=", ""); // make base64 url safe
}
} }
private string GetLink(string token) private string GetLink(string token)