登录不区分用户名大小写 (#21)

This commit is contained in:
milimoe 2023-05-08 22:16:48 +08:00 committed by GitHub
parent 267bb162a1
commit 7a6819e92a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()));
} }
} }