新用户注册后,将收到确认电子邮件,内容如下:
用户名:testuser要设置密码,请访问以下地址:
但我想自定义它。所以我将以下代码添加到functions.php
但我不工作!!!仍然会发送默认电子邮件!!!
我正在使用4.9.9 wordpress
new Client
{
ClientId = "nativeapp",
ClientName = "Native App Sample",
ClientSecrets = new List<Secret> { new Secret { Value = "secret".Sha256() }},
Enabled = true,
AllowedGrantTypes = GrantTypes.Code,
RedirectUris = { "http://localhost:5003/home" },
PostLogoutRedirectUris = { "http://localhost:5003/home" },
AllowedCorsOrigins = { "http://localhost:5003" },
AllowedScopes =
{
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile,
"Panibus"
},
RequirePkce = true,
AccessTokenType = AccessTokenType.Jwt
}
为什么代码不起作用?你能帮我吗?