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

TOPIC: add authentication page for global limesurvey site

add authentication page for global limesurvey site 1 year 11 months 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: 1 year 11 months ago by rigen.
The administrator has disabled public write access.

add authentication page for global limesurvey site 1 year 11 months ago #104984

  • mrli999
  • mrli999's Avatar
  • Offline
  • Expert Lime
  • Posts: 102
  • 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: 1 year 11 months ago by mrli999.
The administrator has disabled public write access.

add authentication page for global limesurvey site 1 year 11 months ago #105411

  • mrli999
  • mrli999's Avatar
  • Offline
  • Expert Lime
  • Posts: 102
  • 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 1 year 11 months ago #105636

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1117
  • Karma: 331
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 1 year 11 months ago #105655

  • mrli999
  • mrli999's Avatar
  • Offline
  • Expert Lime
  • Posts: 102
  • 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 1 year 11 months ago #105671

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1117
  • Karma: 331
The administrator has disabled public write access.
The following user(s) said Thank You: mrli999

add authentication page for global limesurvey site 1 year 10 months 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: 1 year 10 months 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 1 year 10 months ago #106075

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1117
  • Karma: 331
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 1 year 10 months ago #106081

  • mrli999
  • mrli999's Avatar
  • Offline
  • Expert Lime
  • Posts: 102
  • 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 1 year 10 months ago #106087

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1117
  • Karma: 331
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

add authentication page for global limesurvey site 1 year 10 months ago #106094

  • mrli999
  • mrli999's Avatar
  • Offline
  • Expert Lime
  • Posts: 102
  • Thank you received: 2
  • Karma: 0
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 administrator has disabled public write access.
The following user(s) said Thank You: rigen

add authentication page for global limesurvey site 1 year 10 months ago #106145

  • rigen
  • rigen's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Thank you received: 1
  • Karma: 0
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.
The administrator has disabled public write access.

add authentication page for global limesurvey site 1 year 10 months ago #106156

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1117
  • Karma: 331
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
The administrator has disabled public write access.
The following user(s) said Thank You: mrli999

add authentication page for global limesurvey site 1 year 10 months ago #106161

  • mrli999
  • mrli999's Avatar
  • Offline
  • Expert Lime
  • Posts: 102
  • Thank you received: 2
  • Karma: 0
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?
The administrator has disabled public write access.

add authentication page for global limesurvey site 1 year 10 months ago #106173

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1117
  • Karma: 331
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
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.222 seconds