Skip to content

Commit 4792d1d

Browse files
committed
Issue2550716 Email address displayed after password reset request (fix)
Change the message displayed upon password reset using an account name to no longer expose the email address. Password reset triggered using an email address will still display the user supplied email address.
2 parents 1edf016 + 075ae6b commit 4792d1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roundup/cgi/actions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,10 @@ def handle(self):
982982
if not self.client.standard_message([address], subject, body):
983983
return
984984

985-
self.client.add_ok_message(self._('Email sent to %s') % address)
985+
if 'username' in self.form:
986+
self.client.add_ok_message(self._('Email sent to primary notification address for %s.') % name)
987+
else:
988+
self.client.add_ok_message(self._('Email sent to %s.') % address)
986989

987990
class RegoCommon(Action):
988991
def finishRego(self):

0 commit comments

Comments
 (0)