add authentication page for global limesurvey site

More
3 years 1 month ago - 3 years 1 month ago #104937 by rigen
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: 3 years 1 month ago by rigen.

Please Log in to join the conversation.

More
3 years 1 month ago - 3 years 1 month ago #104984 by mrli999
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: 3 years 1 month ago by mrli999.

Please Log in to join the conversation.

More
3 years 1 month ago #105411 by mrli999

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?

Please Log in to join the conversation.

More
3 years 3 weeks ago #105636 by DenisChenu
beforeSurveyPage event plugin with some PHP developpement

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).
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
3 years 3 weeks ago #105655 by mrli999

DenisChenu wrote: beforeSurveyPage event plugin with some PHP developpement


Thany you very much! Where can I find the beforeSurveypage event plugin?

Please Log in to join the conversation.

More
3 years 3 weeks ago #105671 by DenisChenu

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).
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
3 years 2 weeks ago - 3 years 2 weeks ago #106051 by rigen
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: 3 years 2 weeks ago by rigen.
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
3 years 2 weeks ago #106075 by DenisChenu
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

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).
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
3 years 2 weeks ago #106081 by mrli999

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!

Please Log in to join the conversation.

More
3 years 2 weeks ago #106087 by DenisChenu
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 :)

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).
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
3 years 2 weeks ago #106094 by mrli999

DenisChenu wrote: 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 :)




This is a very important function. Would you limesurvey add it to the new version? As you know, when I created some survey online, I don't want the survey is open is every body, and hope it is only open to registered member.
The following user(s) said Thank You: rigen

Please Log in to join the conversation.

More
3 years 2 weeks ago #106145 by rigen
Ok.
Thanks for your remarks.

That's why share is very important in life. :) :)

I'll correct it and feedback the result.

Yes it would be great if limesurvey can handle this function in future version.

Thanks.

Please Log in to join the conversation.

More
3 years 2 weeks ago #106156 by DenisChenu

mrli999 wrote: This is a very important function. Would you limesurvey add it to the new version? As you know, when I created some survey online, I don't want the survey is open is every body, and hope it is only open to registered member.

You can set all of your survey to 'public' => NO : they don't show in public list
All your survey with a token table, and use some replace register plugin to use your own identificatio system on each survey.

Denis

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).
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
3 years 2 weeks ago #106161 by mrli999

DenisChenu wrote:

mrli999 wrote: This is a very important function. Would you limesurvey add it to the new version? As you know, when I created some survey online, I don't want the survey is open is every body, and hope it is only open to registered member.

You can set all of your survey to 'public' => NO : they don't show in public list
All your survey with a token table, and use some replace register plugin to use your own identificatio system on each survey.

Denis


thank you very much. Where can I find such plugin?

Please Log in to join the conversation.

More
3 years 1 week ago #106173 by DenisChenu
There are no existing plugin, you need to construct one yourself.

git.sondages.pro/?p=ls-replaceregister.g...;h=refs/heads/master

And yes : you right : we don't have actually a solution in plugins event to replace 'survey listing' i think we need a new event, in LS core.

Denis

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).
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.