Token field character limit

4 years 10 months ago #107136 by aroback
Sorry if my problem is redundant. I'd appreciate a redirect to a thread that addresses this if it exists.

I'm trying to use social media usernames as tokens to log in to my survey, and there seems to be a 35 character limit that I can't change. My usernames include characters like (-) and (.) since they are from Facebook.

I changed the following values before I uploaded my token .csv file:
*tokens.php --> ln:1111-1112 --> SET TO: 'VARCHAR(500)' and array('type' => 'VARCHAR', 'constraint' => '500'), respectively.
*token_helper.php --> ln:34 --> SET TO: 'token' => 'varchar(256)',

Neither one allowed me to edit existing token values past 35 characters AND the tokens I uploaded were truncated. When I manually edit them in the "display tokens" interface, they exist only until I click on the "home" button to go back to survey admin, then when I view the token list again, they are truncated.

Please tell me what I am doing wrong. This is for my dissertation, so I am desperate! Thanks so much for your help!!

Please Log in or Create an account to join the conversation.

4 years 10 months ago #107141 by DenisChenu

Just use 'social media username' for any attribute, and use included system to set the token.

After, you can do a plugin to redirect user by 'social media username' with the good token. Some inspiration :

But : any user can enter any user name here ??? Any other security system ? I can answer for WhiteHouse ? Yes !!! Great !

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!