Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Token length is shortened when using API

  • JSinitson
  • JSinitson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago - 3 years 11 months ago #199647 by JSinitson
Token length is shortened when using API was created by JSinitson
I'm issuing the method add_participants using the API.
The participiants are added an I get the tokens in the response.

But why are the tokens in that response not 15 chars long as in the Participant settings panel, but just 3?

When I add the token using the Amdin GUI the token length is correct.
Am I missing something?

This is the code I'm issuing:
Code:
$res = $myJSONRPCClient->add_participants($sessionKey, $surveyId, $participiants, true);

LimeSurvey Version is 4.1.17+200414
Last edit: 3 years 11 months ago by JSinitson.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago - 3 years 11 months ago #199748 by DenisChenu
Replied by DenisChenu on topic Token length is shortened when using API
Strange ?

If you are sure : please report the issue …
If possible : with default survey settings + group survey setting + a lss.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 3 years 11 months ago by DenisChenu.
The topic has been locked.
  • JSinitson
  • JSinitson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago - 3 years 10 months ago #200064 by JSinitson
Replied by JSinitson on topic Token length is shortened when using API
The issue is already reported: bugs.limesurvey.org/view.php?id=16042

And the workaround is also there: do not inherit the token length from the global settings.
Last edit: 3 years 10 months ago by JSinitson.
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose