registration: Use tokenized noreply address in signup confirmation.

This commit is contained in:
Vishnu Ks 2018-06-11 11:48:16 +05:30 committed by Tim Abbott
parent 74351fb250
commit 2b1424e51a
1 changed files with 2 additions and 1 deletions

View File

@ -358,7 +358,8 @@ def prepare_activation_url(email: str, request: HttpRequest,
return activation_url
def send_confirm_registration_email(email: str, activation_url: str) -> None:
send_email('zerver/emails/confirm_registration', to_email=email, from_address=FromAddress.NOREPLY,
send_email('zerver/emails/confirm_registration', to_email=email,
from_address=FromAddress.tokenized_no_reply_address(),
context={'activate_url': activation_url})
def redirect_to_email_login_url(email: str) -> HttpResponseRedirect: