Bugfix AcceptInvite
This commit is contained in:
parent
c2e9d6c149
commit
9730c97683
@ -787,7 +787,7 @@ namespace Api\User {
|
|||||||
|
|
||||||
private function checkToken($token) {
|
private function checkToken($token) {
|
||||||
$sql = $this->user->getSQL();
|
$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")
|
->from("UserToken")
|
||||||
->innerJoin("User", "UserToken.user_id", "User.uid")
|
->innerJoin("User", "UserToken.user_id", "User.uid")
|
||||||
->where(new Compare("UserToken.token", $token))
|
->where(new Compare("UserToken.token", $token))
|
||||||
@ -821,7 +821,8 @@ namespace Api\User {
|
|||||||
$this->result["user"] = array(
|
$this->result["user"] = array(
|
||||||
"name" => $tokenEntry["name"],
|
"name" => $tokenEntry["name"],
|
||||||
"email" => $tokenEntry["email"],
|
"email" => $tokenEntry["email"],
|
||||||
"uid" => $tokenEntry["uid"]
|
"uid" => $tokenEntry["uid"],
|
||||||
|
"confirmed" => $tokenEntry["confirmed"]
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return $this->createError("This token does not exist or is no longer valid");
|
return $this->createError("This token does not exist or is no longer valid");
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define("WEBBASE_VERSION", "1.0.3");
|
define("WEBBASE_VERSION", "1.0.4");
|
||||||
|
|
||||||
function getProtocol() {
|
function getProtocol() {
|
||||||
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
|
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
|
||||||
|
Loading…
Reference in New Issue
Block a user