1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00
This commit is contained in:
Kayn Ty 2020-01-24 11:08:47 +00:00
commit 647c2d2716

View File

@ -217,6 +217,7 @@ class DefaultController extends AbstractController {
'data' => $newpoll,
'password_protected' => is_string( $newpoll->getPassword() ),
'admin_key' => $newpoll->getAdminKey(),
'owner_modifier_token' => $foundOwner->getModifierToken(),
],
201 );
@ -541,7 +542,7 @@ class DefaultController extends AbstractController {
'vote_stack' => $stack->display(),
'vote_count' => count( $poll->getStacksOfVotes() ),
'owner_modifier_token' => $foundOwner->getModifierToken(),
'admin_token' => $poll->getAdminKey(),
'admin_key' => $poll->getAdminKey(),
'json_you_sent' => $data,
],
201 );