Open Closed

Email subject of Activation code two factor setting #3079


0
olivierroecker created

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
    hikalkan created

    Which version you are using? Have you tried to search this text in your solution?

  • 0
    olivierroecker created

    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
    hikalkan created

    Hi,

    I assume that you have created AspNet Zero 4.0 project.

    These texts are defined in this file: https://github.com/aspnetzero/aspnet-ze ... e.xml#L107

    But email activation subject is "AbpZeroTemplate account email activation", not "AbpZeroTemplate Security Code".

  • 0
    olivierroecker created

    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
    hikalkan created

    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
    olivierroecker created

    Hi, Sorry for the long time..... before my answser.. My APB.Zero RunTime Version is v4.0.30319....

    good luck

  • 0
    ismcagdas created

    Hi,

    I think you are looking for this one https://github.com/aspnetboilerplate/mo ... er.cs#L579

    Can you try to add below key to your localizaiton and see if it works ? EmailSecurityCodeSubject

    Thanks.

  • 0
    olivierroecker created

    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 - olivier.roecker@lexigone.fr 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
    ismcagdas created

    Hi,

    I think you need to add it to "AbpZero"'s localization values. You can check this document for how to do it https://aspnetboilerplate.com/Pages/Doc ... cExtending.

    Thanks.

  • 0
    olivierroecker created

    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
    ismcagdas created

    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 https://aspnetboilerplate.com/Pages/Doc ... cExtending step by step.

    Thanks.

  • 0
    olivierroecker created

    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
    ismcagdas created

    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.