⚡ send admin key after a vote
This commit is contained in:
parent
6408adcb9d
commit
69ccb84832
|
@ -541,6 +541,7 @@ class DefaultController extends AbstractController {
|
||||||
'vote_stack' => $stack->display(),
|
'vote_stack' => $stack->display(),
|
||||||
'vote_count' => count( $poll->getStacksOfVotes() ),
|
'vote_count' => count( $poll->getStacksOfVotes() ),
|
||||||
'owner_modifier_token' => $foundOwner->getModifierToken(),
|
'owner_modifier_token' => $foundOwner->getModifierToken(),
|
||||||
|
'admin_token' => $poll->getAdminKey(),
|
||||||
'json_you_sent' => $data,
|
'json_you_sent' => $data,
|
||||||
],
|
],
|
||||||
201 );
|
201 );
|
||||||
|
|
Loading…
Reference in New Issue