The Elearning Community • Remove password from registration emails
Page 1 of 1

Remove password from registration emails

Posted: Wed Dec 04, 2019 5:13 pm
by cjchamberland
I've modified the lang[english].xml, to remove passwords from being send in the registration email, however it is still being sent. I've changed the following:

<key id="email&amp;_REGISTERED_USER_TEXT" attributes="email" save_date="2015-09-30 15:32:23"><![CDATA[You are now registered in our system at <a href="/[url]">[url]</a>
with this account:

Username: [userid]
Password: [password]]]></key>

To just be:

<key id="email&amp;_REGISTERED_USER_TEXT" attributes="email" save_date="2015-09-30 15:32:23"><![CDATA[You are now registered in our system at <a href="/[url]">[url]</a>
with this account:

Username: [userid]
]]></key>

But the email still gives me "You are now registered in our system at https://site.com/ with this account: Username: salfkjsd Password: changeme"

How can I remove all passwords from emails?

Re: Remove password from registration emails

Posted: Wed Dec 04, 2019 5:55 pm
by alfa24
You need to change the key in the language module.
XML files are used during the installation process to populate core_lang* tables.

Re: Remove password from registration emails

Posted: Wed Dec 04, 2019 6:38 pm
by cjchamberland
Thank you - that worked.

Re: Remove password from registration emails

Posted: Thu Dec 05, 2019 6:56 pm
by max
Yes, it's enough to do like this
Cattura.PNG
Cattura.PNG (4.42 KiB) Viewed 1684 times

Re: Remove password from registration emails

Posted: Thu Jul 16, 2020 4:38 pm
by JBurg
Could someone point me at the specific file and file location for this change? I'm not sure exactly what the language module is.

Thanks

Re: Remove password from registration emails

Posted: Thu Jul 16, 2020 4:46 pm
by max
You don't have to modify any file.

All labels and all the wording that you can find in the UI is managed by the interface itself.

Language management is in the administration area, in the Settings menu. The last item.
When you reach it, just click on the "translate" button and look for that wording ("you have been registered...").
You will find the translation key you're looking for and be able to edit it inline.

Re: Remove password from registration emails

Posted: Thu Jul 16, 2020 5:10 pm
by JBurg
Thanks, I appreciate the clarity! All fixed now.

This site uses cookies.

Some of the cookies we use are essential for parts of the site to operate and have already been set. We also use Google Analytics scripts, which all use cookies.
You may delete or block all cookies from this site in your browser options.