Jump to content
qba82

DirectAdmin activation email

Recommended Posts

Hi,

blesta create automatically password for new directadmin accounts, but when it use special characters like < then it don't send full password to user in activation email, for example:

blesta created new directadmin account with password: sdaf3<2f245b53

in activation email for user it will show password is: sdaf3

 

Share this post


Link to post
Share on other sites

Hi, today another client get wrong password, I just checked Email log, and password was correct there, but client get wrong one, it was cut just after < including < sign.

Share this post


Link to post
Share on other sites

It sounds like the problem is that the email they receive is an HTML version, and the password contains a special HTML character, "<", which begins an HTML tag. The HTML renderer takes "<" and everything after until a closing ">" character to represent an HTML tag, and that is not shown as text to the user. If the user views the Text version of the email, however, they should see the password correctly.

If you want to resolve the password truncation issue in the HTML version of the email, the password itself should be escaped for HTML. To do so, you will have to update your email template. There is a tag in the email template that represents the password, like "{password}". Change that tag to "{password | escape}". Then, those special characters, like "<", will be displayed correctly and the entire password will be visible. Just set that for the HTML version of the email, not the text version.

Share this post


Link to post
Share on other sites

Hi, I have applied {service.direct_admin_password | escape} tag, but some chars are not showed correctly, for example:

& is showed in email as &amp;

< is showed in email as &lt;

Share this post


Link to post
Share on other sites

Yes I know, I checked without "| escape}" tag, in this case password is cut just before < > or &, but if I use "| escape}" tag, then it is not cut but it is showing &amp; instead & and &lt; instead <

Share this post


Link to post
Share on other sites
8 hours ago, qba82 said:

Yes I know, I checked without "| escape}" tag, in this case password is cut just before < > or &, but if I use "| escape}" tag, then it is not cut but it is showing &amp; instead & and &lt; instead <

Sorry, I had a typo in my last answer.  I meant to say that you don't want "| escape}" in the text version.  Is that the case?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...