At this time, the default subject of the Email Activation code is "AbpZeroTemplate Security Code". Where or how can i change the subject of this email ?
Best regards
13 Answer(s)
-
0
Which version you are using? Have you tried to search this text in your solution?
-
0
I'm using the last release of the ASPNETZERO release, i'm a new customer and i have searched these words in my solution with no result...., it's seems to be setup in Abp dll part of the project but not in the boilerplate framework itself, i don't find in in the source code or the boilerplate.... so strange no ?
-
0
Hi,
I assume that you have created AspNet Zero 4.0 project.
These texts are defined in this file: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Localization/AbpZeroTemplate/AbpZeroTemplate.xml#L107">https://github.com/aspnetzero/aspnet-ze ... e.xml#L107</a>
But email activation subject is "AbpZeroTemplate account email activation", not "AbpZeroTemplate Security Code".
-
0
Hi, In the case of a PIN code activation send by Email, It is the Subject describe in my first question. Can you find this subject in your source code in your side ?
Thanks in advance for your investigation. Regards
-
0
Can you write the version of your project and Abp packages. Especially for Abp.Zero package's version? I searched but could not find the exact test "AbpZeroTemplate Security Code"
-
0
Hi, Sorry for the long time..... before my answser.. My APB.Zero RunTime Version is v4.0.30319....
good luck
-
0
Hi,
I think you are looking for this one <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/blob/master/src/Abp.Zero/Authorization/Users/AbpUserManager.cs#L579">https://github.com/aspnetboilerplate/mo ... er.cs#L579</a>
Can you try to add below key to your localizaiton and see if it works ? EmailSecurityCodeSubject
Thanks.
-
0
Sorry, but this setting doesn't resolve the mystake.
See below a extract of a log: 36258 DEBUG 2017-05-01 11:46:27,423 [6 ] Abp.Net.Mail.NullEmailSender - <a href="mailto:[email protected]">[email protected]</a> 36259 DEBUG 2017-05-01 11:46:27,423 [6 ] Abp.Net.Mail.NullEmailSender - 36260: DEBUG 2017-05-01 11:46:27,423 [6 ] Abp.Net.Mail.NullEmailSender - AbpZeroTemplate Security Code 36261 DEBUG 2017-05-01 11:46:27,423 [6 ] Abp.Net.Mail.NullEmailSender - Your security code is: 931528 36262 DEBUG 2017-05-01 12:10:28,404 [1 ] Abp.Modules.AbpModuleManager - Loading Abp modules... .....
Great week-end AbpZeroTemplate Security Code.zip
-
0
Hi,
I think you need to add it to "AbpZero"'s localization values. You can check this document for how to do it <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Localization#DocExtending">https://aspnetboilerplate.com/Pages/Doc ... cExtending</a>.
Thanks.
-
0
Hi, Sorry, but your reply is more confuse for me, can you get to me more explication ? i'm using aspnetzero package, how can i add this abp extension localization ? add a nuget package or directly add theses files in my solution ?
Thanks for your help. Olivier
-
0
Hi,
This localization key is used in Abp.Zero package. So, as explained in this document, Extending Localization Sources you need to override localization of Abp.Zero package to add localization for "EmailSecurityCodeSubject".
You just need to follow Extending Localization Sources of this document <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Localization#DocExtending">https://aspnetboilerplate.com/Pages/Doc ... cExtending</a> step by step.
Thanks.
-
0
Hi, I'm confuse, but i think that you will must get me by the hand on this case. i use a asp.net zero template MVC, there is not a directory Localization in the project web, but this folder exists in the .Core project of my solution... in this case, i don't understood how start or use this article in a "step-by-step" approach... During the run, the server said to me that /Localization/AbpWebExtensions can be found, Thanks for your patience
My PreInitialize is here: public override void PreInitialize() { Configuration.Auditing.IsEnabledForAnonymousUsers = true;
//Declare entity types Configuration.Modules.Zero().EntityTypes.Tenant = typeof (Tenant); Configuration.Modules.Zero().EntityTypes.Role = typeof (Role); Configuration.Modules.Zero().EntityTypes.User = typeof (User); //Add/remove localization sources Configuration.Localization.Sources.Add( new DictionaryBasedLocalizationSource( "Loxo_FrontOffice", new XmlEmbeddedFileLocalizationDictionaryProvider( Assembly.GetExecutingAssembly(), "Lexigone.Loxo_FrontOffice.Localization.Loxo_FrontOffice" ) ) ); //Configuration.Localization.Sources.Extensions.Add( // new LocalizationSourceExtensionInfo("AbpWeb", // new XmlFileLocalizationDictionaryProvider( // HttpContext.Current.Server.MapPath("~/Localization/AbpWebExtensions") // ) // ) //);
-
0
Hi,
You need to create Localization folder in your Web project, can you try that way ? If that does not work, I can try to apply this into your project if you can send your project to us.
Thanks.