Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mark Gil Libres 24 posts 113 karma points
    May 21, 2018 @ 05:08
    Mark Gil Libres
    0

    User invite email to use same protocol

    Hi,

    Does anyone know how to configure Umbraco to send user invite email link using the same protocol? For example, we used https://www.ourdomain.com/umbraco to invite a user, but the email generated has the link http:// rather than https://

    Can someone please point me to the right direction?

    Thanks, Mark

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 21, 2018 @ 08:41
    Dennis Aaen
    0

    Hi Mark,

    The HTML for the user invite email are stored in the /Umbraco/Config/Lang/en.xml

    If you havenĀ“t added anything to the file, then you should be able to find it about line 1904

    Hope this helps,

    /Dennis

  • Mark Gil Libres 24 posts 113 karma points
    May 21, 2018 @ 22:50
    Mark Gil Libres
    0

    Hi Dennis,

    Have seen that file however the protocol / url is managed via a replacement token '%3%'. Wasn't that supposed to use whatever the current url is?(including the protocol)

    Regards, Mark

  • Mike Chambers 636 posts 1253 karma points c-trib
    May 21, 2018 @ 09:42
    Mike Chambers
    0

    Looking for this too.. the lang file only contains a replacement token %3% for the href though?

    <a href='%3%' target='_blank' style='color: #FFFFFF; text-decoration: none; -ms-word-break: break-all; word-break: break-all; border-radius: 5px; box-sizing: border-box; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; text-transform: capitalize; background: #35C786; margin: 0; padding: 12px 30px; border: 1px solid #35c786;'>
                                                                                                Click this link to accept the invite
                                                                                            </a>
    

    It does look like this should be working..

    umbracoApplicationUrl is set as "" in the umbracosettings.config so should be working it out?

    @umbracoApplicationUrl
            The url of the Umbraco application. By default, Umbraco will figure it out from the first request.
            Configure it here if you need anything specific.
    

    src/Umbraco.Web/Editors/UsersController.cs

    // Construct full URL using configured application URL (which will fall back to request)
                var applicationUri = new Uri(ApplicationContext.UmbracoApplicationUrl);
                var inviteUri = new Uri(applicationUri, action);
    
                var emailSubject = Services.TextService.Localize("user/inviteEmailCopySubject",
                    //Ensure the culture of the found user is used for the email!
                    UserExtensions.GetUserCulture(to.Language, Services.TextService));
                var emailBody = Services.TextService.Localize("user/inviteEmailCopyFormat",
                    //Ensure the culture of the found user is used for the email!
                    UserExtensions.GetUserCulture(to.Language, Services.TextService),
                    new[] { userDisplay.Name, from, message, inviteUri.ToString(), fromEmail });
    
  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    May 22, 2018 @ 11:08
    Dan Diplo
    100

    Have you set umbracoUseSSL in web.config to true ?

    https://our.umbraco.org/Documentation/Reference/Config/webconfig/#umbracousessl

  • Mark Gil Libres 24 posts 113 karma points
    May 22, 2018 @ 11:33
    Mark Gil Libres
    0

    ah right! will try this setting.. this was out of my mind since we had issues on some projects setting this to true but can't exactly recall the problem.. but will give a try and get back to you..

    thanks Dan!

  • Mark Gil Libres 24 posts 113 karma points
    May 23, 2018 @ 22:56
    Mark Gil Libres
    0

    have figured out why, the client used the cloudflare SSL while non on the origin server.. solution was to let client install the certificate as well on the origin server and set the config umbracoUseSSL to true. :)

Please Sign in or register to post replies

Write your reply to:

Draft