mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
ce560e7b76
commit
96c586b39d
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user