Skip to Content Skip to Menu

[SOLVED] Password reset email

7 years 4 weeks ago - 7 years 4 weeks ago #297712 by hawkeyedesign
[SOLVED] Password reset email was created by hawkeyedesign
We are trying to setup a DE language version of the 'forgot password' e-mail, and have just edited the text, however the section for 'your new password is' just shows the site URL in the e-mail.

In the language.php file it just shows s%.

Any idea how we can ensure it sends a new password to the user instead?
Last edit: 7 years 4 weeks ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
7 years 4 weeks ago #297731 by krileon
Replied by krileon on topic Password reset email
The email uses sprintf on its language string with the following sprintf replacements.

1 = username
2 = site url
3 = new password

If you just specify %s they'll replace in the order as parsed. So for example "Username: %s, Site: %s, Password: %s" would all be correct. If you want to move them around you need to use %#$s usage. So for example if you want the password you'd use %3$s. See sprintf documentation for further usage details.

php.net/manual/en/function.sprintf.php

We'll be replacing all these old strings in a future release when we refactor that code to make them proper substitutions.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

7 years 4 weeks ago #297732 by hawkeyedesign
Replied by hawkeyedesign on topic Password reset email
That's great - thanks for explaining!

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum