From 8c23711ac3d1ce61c95da0bb03565d712d7332a4 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 25 Jul 2019 13:10:42 +0200 Subject: [PATCH] Fixed activated flag issue in accounts after migration --- src/objects/account.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/objects/account.php b/src/objects/account.php index 45cbaf9..21418b3 100644 --- a/src/objects/account.php +++ b/src/objects/account.php @@ -119,7 +119,7 @@ class Account { } function create() { - $query = "INSERT INTO " . ACCOUNTS_DB_TABLE . " SET username=:username, domain=:domain, email=:email, + $query = "INSERT INTO " . ACCOUNTS_DB_TABLE . " SET username=:username, domain=:domain, email=:email, activated=:activated, confirmation_key=:confirmation_key, ip_address=:ip_address, user_agent=:user_agent, creation_time=:creation_time"; if (USE_IN_APP_PURCHASES) { @@ -136,6 +136,7 @@ class Account { $this->username = htmlspecialchars(strip_tags($this->username)); $this->domain = htmlspecialchars(strip_tags($this->domain)); + $this->activated = htmlspecialchars(strip_tags($this->activated)); $this->email = htmlspecialchars(strip_tags($this->email)); $this->confirmation_key = htmlspecialchars(strip_tags($this->confirmation_key)); $this->ip_address = htmlspecialchars(strip_tags($this->ip_address)); @@ -145,6 +146,7 @@ class Account { $stmt->bindParam(":username", $this->username); $stmt->bindParam(":domain", $this->domain); $stmt->bindParam(":email", $this->email); + $stmt->bindParam(":activated", $this->activated); $stmt->bindParam(":confirmation_key", $this->confirmation_key); $stmt->bindParam(":ip_address", $this->ip_address); $stmt->bindParam(":user_agent", $this->user_agent);