fix-messages: IDE0063
This commit is contained in:
parent
1da0de1200
commit
151d8e162a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user