Changed to use php time passed to the database instead of using the database time.

This commit is contained in:
Keith Uplinger 2018-04-19 13:51:09 -05:00
parent db4e020d87
commit 36a8b1f11a
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ if (!is_valid_email_addr($email_addr)) {
$database_passwd_hash = password_hash($passwd_hash , PASSWORD_DEFAULT); $database_passwd_hash = password_hash($passwd_hash , PASSWORD_DEFAULT);
$email_addr = BoincDb::escape_string($email_addr); $email_addr = BoincDb::escape_string($email_addr);
$result = $user->update( $result = $user->update(
"email_addr='$email_addr', previous_email_addr='$user->email_addr', email_addr_change_time=unix_timestamp(), passwd_hash='$passwd_hash', email_validated=0" "email_addr='$email_addr', previous_email_addr='$user->email_addr', email_addr_change_time=".time().", passwd_hash='$passwd_hash', email_validated=0"
); );
$user->previous_email_addr=$user->email_addr; $user->previous_email_addr=$user->email_addr;
$user->email_addr=$email_addr; $user->email_addr=$email_addr;