mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 08:09:02 +00:00
登录不区分用户名大小写 (#21)
This commit is contained in:
parent
267bb162a1
commit
7a6819e92a
@ -238,7 +238,7 @@ namespace Milimoe.FunGame.Core.Api.Utility
|
||||
/// <returns></returns>
|
||||
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