fix-messages: IDE0063
This commit is contained in:
parent
1da0de1200
commit
151d8e162a
@ -137,12 +137,10 @@ namespace ASC.Core.Common.Notify
|
||||
|
||||
var buf = id.Concat(d).ToArray();
|
||||
|
||||
using (var sha = new SHA256CryptoServiceProvider())
|
||||
{
|
||||
using var sha = new SHA256CryptoServiceProvider();
|
||||
return Convert.ToBase64String(sha.ComputeHash(buf))
|
||||
.Replace('+', '-').Replace('/', '_').Replace("=", ""); // make base64 url safe
|
||||
}
|
||||
}
|
||||
|
||||
private string GetLink(string token)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user