FIX: only output $CleartextPassword if it has a value

The $CleartextPassword value is never populated as reported https://github.com/silverstripe/silverstripe-framework/issues/3257 and in agreeance with the two comments (cc @kinglozzer) I also don't think plaintext passwords should be included in emails by default. As Loz suggests if somebody wants this it can easily be added by overriding the template.
This commit is contained in:
Christopher Darling 2016-03-17 09:37:10 +00:00
parent ce560e7b76
commit 96c586b39d
1 changed files with 2 additions and 2 deletions

View File

@ -6,6 +6,6 @@
</p>
<p>
<%t ChangePasswordEmail_ss.EMAIL 'Email' %>: $Email<br />
<%t ChangePasswordEmail_ss.PASSWORD 'Password' %>: $CleartextPassword
<%t ChangePasswordEmail_ss.EMAIL 'Email' %>: $Email<% if $CleartextPassword %><br />
<%t ChangePasswordEmail_ss.PASSWORD 'Password' %>: $CleartextPassword<% end_if %>
</p>