3 changed files with 38 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||||
|
<div style="position: absolute;"> |
||||
|
<span>{{L "EmailConfirmed" model.user}}</span> |
||||
|
<p style="display:block; padding:0 50px; width: 150px; height:48px; line-height:48px; color:#cc0000; font-size:26px; background:#9c9797; font-weight:bold;">{{model.code}}</p> |
||||
|
<span>{{L "EmailConfirmedRemarks"}}</span> |
||||
|
</div> |
||||
@ -0,0 +1,26 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Emailing.Templates; |
||||
|
using Volo.Abp.Localization; |
||||
|
using Volo.Abp.TextTemplating; |
||||
|
using Volo.Abp.Identity.Localization; |
||||
|
|
||||
|
namespace LY.MicroService.IdentityServer.Emailing.Templates |
||||
|
{ |
||||
|
public class IdentityEmailTemplateDefinitionProvider : TemplateDefinitionProvider |
||||
|
{ |
||||
|
public override void Define(ITemplateDefinitionContext context) |
||||
|
{ |
||||
|
context.Add( |
||||
|
new TemplateDefinition( |
||||
|
IdentityEmailTemplates.EmailConfirmed, |
||||
|
displayName: LocalizableString.Create<IdentityResource>($"TextTemplate:{IdentityEmailTemplates.EmailConfirmed}"), |
||||
|
layout: StandardEmailTemplates.Layout, |
||||
|
localizationResource: typeof(IdentityResource) |
||||
|
).WithVirtualFilePath("/LINGYUN/Abp/IdentityServer4/Emailing/Templates/EmailConfirmed.tpl", true) |
||||
|
); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace LY.MicroService.IdentityServer.Emailing.Templates |
||||
|
{ |
||||
|
public static class IdentityEmailTemplates |
||||
|
{ |
||||
|
public const string EmailConfirmed = "Abp.Identity.EmailConfirmed"; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue