diff --git a/api/v1/invitations/index.php b/api/v1/invitations/index.php new file mode 100644 index 00000000000..047483af047 --- /dev/null +++ b/api/v1/invitations/index.php @@ -0,0 +1,21 @@ +getData('reviewerAccessKeysEnabled')) { $accessKeyCode = $request->getUserVar('key'); if ($accessKeyCode) { - $keyHash = md5($accessKeyCode); - - $invitation = Repo::invitation()->getBOByKeyHash($keyHash); + $invitation = Repo::invitation() + ->getByMD5Key($accessKeyCode); if (isset($invitation)) { - $invitation->acceptHandle(); + $invitation->acceptHandle($request); } } } diff --git a/registry/emailTemplates.xml b/registry/emailTemplates.xml index 33a38623f5c..de4eee21cf6 100644 --- a/registry/emailTemplates.xml +++ b/registry/emailTemplates.xml @@ -76,4 +76,5 @@ +