mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:43:26 +08:00
【修复】修复JwtConfig下SecretKey节点如果设置字段串,拼接失败导致加密报错的问题。
This commit is contained in:
@@ -72,7 +72,7 @@ namespace CoreCms.Net.Configuration
|
||||
|
||||
#region Jwt授权配置================================================================================
|
||||
|
||||
public static readonly string JwtConfigSecretKey = AppSettingsHelper.GetContent("JwtConfig", "SecretKey") + AppSettingsHelper.GetMachineRandomKey(DbSqlConnection + AppSettingsHelper.GetMACIp(true));
|
||||
public static readonly string JwtConfigSecretKey = AppSettingsHelper.GetMachineRandomKey(DbSqlConnection + AppSettingsHelper.GetMACIp(true) + AppSettingsHelper.GetContent("JwtConfig", "SecretKey"));
|
||||
public static readonly string JwtConfigIssuer = !string.IsNullOrEmpty(AppSettingsHelper.GetContent("JwtConfig", "Issuer")) ? AppSettingsHelper.GetContent("JwtConfig", "Issuer") : AppSettingsHelper.GetHostName();
|
||||
public static readonly string JwtConfigAudience = AppSettingsHelper.GetContent("JwtConfig", "Audience");
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user