Added text to the website that will show if an email was changed within 7 days.

This commit is contained in:
Keith Uplinger 2018-04-19 11:55:24 -05:00
parent cc38a9dab3
commit 863cf3d2ca
1 changed files with 2 additions and 0 deletions

View File

@ -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) {