From 432c9d344929f36aae734fe0641e68487abf9212 Mon Sep 17 00:00:00 2001 From: Vishnu Ks Date: Mon, 20 Nov 2017 17:02:49 +0000 Subject: [PATCH] email_log: Reset the value of email after email change process. This commit actually needs only user_profile.save() line but it's more readable with both the lines. --- zerver/views/email_log.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zerver/views/email_log.py b/zerver/views/email_log.py index 73b4a9edce..4952f4d0cc 100755 --- a/zerver/views/email_log.py +++ b/zerver/views/email_log.py @@ -88,6 +88,9 @@ def generate_all_emails(request): user_profile = get_user(registered_email, realm) result = client.get(url) assert result.status_code == 200 + # Reset the email value + user_profile.email = registered_email + user_profile.save() # Follow up day1 day2 emails enqueue_welcome_emails(user_profile)