diff --git a/core/Api/UserAPI.class.php b/core/Api/UserAPI.class.php index 1e5fc28..a759fb9 100644 --- a/core/Api/UserAPI.class.php +++ b/core/Api/UserAPI.class.php @@ -787,7 +787,7 @@ namespace Api\User { private function checkToken($token) { $sql = $this->user->getSQL(); - $res = $sql->select("UserToken.token_type", "User.uid", "User.name", "User.email") + $res = $sql->select("UserToken.token_type", "User.uid", "User.name", "User.email", "User.confirmed") ->from("UserToken") ->innerJoin("User", "UserToken.user_id", "User.uid") ->where(new Compare("UserToken.token", $token)) @@ -821,7 +821,8 @@ namespace Api\User { $this->result["user"] = array( "name" => $tokenEntry["name"], "email" => $tokenEntry["email"], - "uid" => $tokenEntry["uid"] + "uid" => $tokenEntry["uid"], + "confirmed" => $tokenEntry["confirmed"] ); } else { return $this->createError("This token does not exist or is no longer valid"); diff --git a/core/core.php b/core/core.php index 7dda269..f456348 100644 --- a/core/core.php +++ b/core/core.php @@ -1,6 +1,6 @@