Skip to content

Commit 075ae6b

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.
1 parent 53187e6 commit 075ae6b

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
@@ -976,7 +976,10 @@ def handle(self):
976976
if not self.client.standard_message([address], subject, body):
977977
return
978978

979-
self.client.add_ok_message(self._('Email sent to %s') % address)
979+
if 'username' in self.form:
980+
self.client.add_ok_message(self._('Email sent to primary notification address for %s.') % name)
981+
else:
982+
self.client.add_ok_message(self._('Email sent to %s.') % address)
980983

981984
class RegoCommon(Action):
982985
def finishRego(self):

0 commit comments

Comments
 (0)