Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: add authentication page for global limesurvey site

add authentication page for global limesurvey site 8 months 2 weeks ago #104937

  • rigen
  • rigen's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Thank you received: 1
  • Karma: 0
Hi,
I actually face a problem with limesurvey. I need to force all user to have couple login/password before accessing any survey.
The context is that the survey have to be edited by the same persons (5 to 10). They will have to fill the survey for illiterates. So before let's them access to the survey's pages I want to authenticate them.

Can anyone helps me please?
Thanks.
Last Edit: 8 months 2 weeks ago by rigen.
The administrator has disabled public write access.

add authentication page for global limesurvey site 8 months 2 weeks ago #104984

  • mrli999
  • mrli999's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 95
  • Thank you received: 2
  • Karma: 0
I am also interested in the function. It should be very useful.

Maybe lime survey team can create a special survey in the survey (maybe name the survey can be LOGIN), and let that survey serve as the login page. Then the administrator can edit it(login page) as neccsary.
Last Edit: 8 months 2 weeks ago by mrli999.
The administrator has disabled public write access.

add authentication page for global limesurvey site 8 months 1 week ago #105411

  • mrli999
  • mrli999's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 95
  • Thank you received: 2
  • Karma: 0
mrli999 wrote:
I am also interested in the function. It should be very useful.

Maybe lime survey team can create a special survey in the survey (maybe name the survey can be LOGIN), and let that survey serve as the login page. Then the administrator can edit it(login page) as neccsary.

Any suggestions?
The administrator has disabled public write access.

add authentication page for global limesurvey site 8 months 5 days ago #105636

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6471
  • Thank you received: 854
  • Karma: 254
beforeSurveyPage event plugin with some PHP developpement
The administrator has disabled public write access.
The following user(s) said Thank You: mrli999

add authentication page for global limesurvey site 8 months 4 days ago #105655

  • mrli999
  • mrli999's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 95
  • Thank you received: 2
  • Karma: 0
DenisChenu wrote:
beforeSurveyPage event plugin with some PHP developpement

Thany you very much! Where can I find the beforeSurveypage event plugin?
The administrator has disabled public write access.

add authentication page for global limesurvey site 8 months 4 days ago #105671

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6471
  • Thank you received: 854
  • Karma: 254
The administrator has disabled public write access.
The following user(s) said Thank You: mrli999

add authentication page for global limesurvey site 7 months 3 weeks ago #106051

  • rigen
  • rigen's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Thank you received: 1
  • Karma: 0
Hi everybody.

Appologies for that long silence.
I got some result with DenisChenu proposition.

What you will find attached is the plugin i wrote for the moment. It does in a way what I want but i want to improve it.

Actually I use the admin login page to authenticate users so i have to hack limesurvey souce code to redirect the user to the resqueted survey page.

What I want now is to developp a custom authentication page in this plugin to facilitate redirection.

If someone hav an idea he is welcome.

Thanks.
Last Edit: 7 months 3 weeks ago by rigen.
The administrator has disabled public write access.
The following user(s) said Thank You: mrli999

add authentication page for global limesurvey site 7 months 3 weeks ago #106075

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6471
  • Thank you received: 854
  • Karma: 254
Hi,

Think it's a bad idea to use Admin Login : better to use partcipant DB with one column for password.

To use "beforSurveyPage" , you can take some code here : git.sondages.pro/?p=ls-replaceregister.git/.git;a=summary
The administrator has disabled public write access.
The following user(s) said Thank You: mrli999

add authentication page for global limesurvey site 7 months 3 weeks ago #106081

  • mrli999
  • mrli999's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 95
  • Thank you received: 2
  • Karma: 0
DenisChenu wrote:
Hi,

Think it's a bad idea to use Admin Login : better to use partcipant DB with one column for password.

To use "beforSurveyPage" , you can take some code here : git.sondages.pro/?p=ls-replaceregister.git/.git;a=summary

Totally agree!

If the user in the central participant DB can have more attribute including password, username and etc. And the limesurvey can let public user register into the central participant DB. That would be great!
The administrator has disabled public write access.

add authentication page for global limesurvey site 7 months 3 weeks ago #106087

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6471
  • Thank you received: 854
  • Karma: 254
You can add an Attribute password if needed.

And maybe 2 option :
When you import/update manually : add the password witout crypting.
When user log in via your own log in system : update the password crypted with some 'tag' : sha256:cryptedpassword.

I think here you need an plugin event :
Idea 1: beforeSurveysList : github.com/LimeSurvey/LimeSurvey/blob/ma...urveysController.php here
Idea 2: defaultController : github.com/LimeSurvey/LimeSurvey/blob/ma...fig/internal.php#L72

Please put a feature reuest for 2.06 LS core version if you need some plugin event :)
The administrator has disabled public write access.
The following user(s) said Thank You: mrli999
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.129 seconds
Donation Image