From 6a1f4d6752b583d74755c0fb39d8c03e670c5237 Mon Sep 17 00:00:00 2001 From: Leon Date: Wed, 17 Jun 2020 20:50:39 +0200 Subject: [PATCH] Invite added minor comments --- core/Api/User/Invite.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Api/User/Invite.class.php b/core/Api/User/Invite.class.php index 4bfdb21..a394f69 100644 --- a/core/Api/User/Invite.class.php +++ b/core/Api/User/Invite.class.php @@ -29,6 +29,7 @@ class Invite extends Request { return false; } + //add to DB $token = generateRandomString(36); $valid_until = (new DateTime())->modify("+48 hour"); $sql = $this->user->getSQL(); @@ -38,6 +39,7 @@ class Invite extends Request { $this->success = ($res !== FALSE); $this->lastError = $sql->getLastError(); + //send validation mail if($this->success) { $request = new SendEmail($this->user); $this->success = $request->execute(array(