Welcome to the LimeSurvey Community Forum

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

Implementing Terms of Use Agreement in LimeSurvey for LDAP Users

  • quasar_
  • quasar_'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 months 3 weeks ago #264951 by quasar_
I am looking to create a plugin or module for LimeSurvey that will display a "Terms of Use" agreement to all users upon login. Users will be required to accept these terms before they can proceed to use LimeSurvey. Our user accounts are created using the LDAP plugin.Could you suggest the best way to implement this functionality? Would using Yii's Access Control Filter be a valid approach for this requirement?

Please Log in to join the conversation.

  • quasar_
  • quasar_'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 months 6 days ago #265328 by quasar_
Hi everyone,I hope you're all doing well. I previously posted a question about implementing a check for user acceptance of the Terms of Use but haven’t received a response yet. I would be very grateful if a developer or someone knowledgeable could help me out.Here’s my question:I need to implement a feature to check if a user has accepted the Terms of Use. If the user has not accepted the terms, access to LimeSurvey should be denied. Could anyone provide guidance or examples on how to best implement this?This feature is crucial for us to ensure compliance before granting access. Any guidance or advice would be greatly appreciated.Thank you so much for your time and assistance.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
11 months 6 days ago #265342 by DenisChenu
It's a community forum : Volunteers are not paid. If you need professional support : www.limesurvey.com/customization

Else : the simplest way seem to create your own LDAP plugin

1. Copy github.com/LimeSurvey/LimeSurvey/tree/ma...ore/plugins/AuthLDAP
2. Replace AuthLDAP by AuthLDAPTUA in name, name of ile name of class, name of plugin in config.xml
3. In newLoginForm github.com/LimeSurvey/LimeSurvey/blob/ma...AP/AuthLDAP.php#L383   add a checkbox with TOS link 'I accept TOS'
4. In newUserSession : check if the checkbox is checked and return auth failure if not github.com/LimeSurvey/LimeSurvey/blob/f5...AP/AuthLDAP.php#L445

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose