forked from project-redbud/FunGame-Core
登录不区分用户名大小写 (#21)
This commit is contained in:
parent
267bb162a1
commit
7a6819e92a
@ -238,7 +238,7 @@ namespace Milimoe.FunGame.Core.Api.Utility
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static string Encrypt(this string msg, string key)
|
public static string Encrypt(this string msg, string key)
|
||||||
{
|
{
|
||||||
return Encryption.HmacSha512(msg, Encryption.HmacSha512(msg, key));
|
return Encryption.HmacSha512(msg, Encryption.HmacSha512(msg, key.ToLower()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user