From 863cf3d2cacb7208328b2b51d8f5546442e935ea Mon Sep 17 00:00:00 2001 From: Keith Uplinger Date: Thu, 19 Apr 2018 11:55:24 -0500 Subject: [PATCH] Added text to the website that will show if an email was changed within 7 days. --- html/user/edit_email_action.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/user/edit_email_action.php b/html/user/edit_email_action.php index 4d85088595..2a3c1de5a2 100644 --- a/html/user/edit_email_action.php +++ b/html/user/edit_email_action.php @@ -36,6 +36,8 @@ if (!is_valid_email_addr($email_addr)) { echo tra("New email address '%1' is invalid.", $email_addr); } else if ($email_addr == $user->email_addr) { echo tra("New email address is same as existing address. Nothing is changed."); +} else if ($user->email_addr_change_time + 604800 > time()) { + echo tra("Email address was changed within the past 7 days, please look for an email to $user->previous_email_addr if this email change incorrect."); } else { $existing = BoincUser::lookup_email_addr($email_addr); if ($existing) {