mirror of https://github.com/BOINC/boinc.git
Changed to use php time passed to the database instead of using the database time.
This commit is contained in:
parent
db4e020d87
commit
36a8b1f11a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue