Welcome, Guest
Username: Password: Remember me

TOPIC: Using tokens without emails

Using tokens without emails 2 years 7 months ago #71312

  • Sharptech
  • Sharptech's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hi,

I am new to limesurvey. I need to create a website that grants a token to the user after the user logins. This token will be used to uniquely identify the user and prevent that user from resubmitting responses to the surveys after the initial responses to them are submitted. Then the user launches the surveys from our website directly after receiving this token. The user does not need to open any emails in order to obtain the token and launch the survey. Is it possible to implement such a system using limesurvey?

Thanks
The administrator has disabled public write access.

Aw: Using tokens without emails 2 years 7 months ago #71325

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • Karma: 17
Hello,

I had to do something similar about 3 weeks ago (authentification with SSPI and fetching/creating a token). I'll add a .zip file with two .php files as attachment (though the comments are in German). The ml version is only fetching the token while the ol version is able to create a token if there's no token for the user. The attribute_1 is a created new column for the token table and is used for storing the user name, id or whatever your user has to be indentified with.

Perhaps this will help you or at least give you an idea how to solve this.
Attachments:
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
Last Edit: 2 years 7 months ago by Steve.
The administrator has disabled public write access.

Re: Aw: Using tokens without emails 2 years 7 months ago #71621

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 293
  • Karma: 248
Sharptech, this can be coded, I have created similar scripts for several customers before: You just need to use the same token generation function as Limesurvey does in order to have a valid token of sufficient length. Then create the according token entry at the Limesurvey DB and present the link to the user.

@vierundzwanzig: If your scripts are to be used in a certain context (SSPI?) please open a ticket at our bugtracker at the "user patches" section and attach them there because the forum is wiped out regularly.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Aw: Using tokens without emails 2 years 7 months ago #71636

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • Karma: 17
Mazi wrote:
@vierundzwanzig: If your scripts are to be used in a certain context (SSPI?) please open a ticket at our bugtracker at the "user patches" section and attach them there because the forum is wiped out regularly.

Okay, done:
bugs.limesurvey.org/view.php?id=5653
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.136 seconds
Donation Image