X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fsecurity.php;h=45f8d86b10f4808238059e97515cd5fc3eeffb1f;hb=5e7285b9ba3236e3c5b6163df323eefebbc8b20e;hp=e370e9340c30e4ebc7a50de3fc7c3fbf49cd6ba6;hpb=b7a735529212a1305bdfa74b874cef9789d01a2d;p=friendica.git diff --git a/include/security.php b/include/security.php index e370e9340c..45f8d86b10 100644 --- a/include/security.php +++ b/include/security.php @@ -10,7 +10,7 @@ use Friendica\Core\PConfig; use Friendica\Core\System; use Friendica\Database\DBM; use Friendica\Model\Group; -use Friendica\Util\Temporal; +use Friendica\Util\DateTimeFormat; /** * @brief Calculate the hash that is needed for the "Friendica" cookie @@ -142,10 +142,10 @@ function authenticate_success($user_record, $login_initial = false, $interactive header('X-Account-Management-Status: active; name="' . $a->user['username'] . '"; id="' . $a->user['nickname'] . '"'); if ($login_initial || $login_refresh) { - dba::update('user', ['login_date' => Temporal::utcNow()], ['uid' => $_SESSION['uid']]); + dba::update('user', ['login_date' => DateTimeFormat::utcNow()], ['uid' => $_SESSION['uid']]); // Set the login date for all identities of the user - dba::update('user', ['login_date' => Temporal::utcNow()], + dba::update('user', ['login_date' => DateTimeFormat::utcNow()], ['password' => $master_record['password'], 'email' => $master_record['email'], 'account_removed' => false]); }