- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
one-time passwords
- azakaria
- Topic Author
- Offline
- New Member
Less
More
5 years 5 months ago #176447
by azakaria
one-time passwords was created by azakaria
Hi,
I'm trying to use the one-time passwords feature. but the online documentation is not clear. one time it says to add
to the config.php file, and in another page it says to add
, but third site, suggested to add the following code
under
Anyways, I added the following in my config.php file
then I inserted the MD5 password to the table "lime_users".
when I try the URL
it keeps complaining that the username & password is not working! any idea how to make one-time password feature to work, please?
I appreciate your time. Thanks!
I'm trying to use the one-time passwords feature. but the online documentation is not clear. one time it says to add
Code:
$use_one_time_passwords = true;
Code:
config['use_one_time_passwords'] = true;
Code:
'use_one_time_passwords'=>true,
Code:
'config'=>array()
Anyways, I added the following in my config.php file
Code:
'config'=>array( 'debug'=>0, 'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2 // Update default LimeSurvey config here 'use_one_time_passwords'=>true, )
then I inserted the MD5 password to the table "lime_users".
Code:
$mstr = "mysecret"; echo md5($mstr);
when I try the URL
company.com/survey/index.php/admin/authe...ser&onepass=mysecret
it keeps complaining that the username & password is not working! any idea how to make one-time password feature to work, please?
I appreciate your time. Thanks!
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
5 years 5 months ago #176460
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 , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic one-time passwords
I just answer on this point :
This is the good way, can you give link to the other way ?
azakaria wrote: but third site, suggested to add the following code
underCode:'use_one_time_passwords'=>true,Code:'config'=>array()
Anyways, I added the following in my config.php file
Code:'config'=>array( 'debug'=>0, 'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2 // Update default LimeSurvey config here 'use_one_time_passwords'=>true, )
This is the good way, can you give link to the other way ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- azakaria
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
5 years 5 months ago - 5 years 5 months ago #176477
by azakaria
Replied by azakaria on topic one-time passwords
The other ways are listed in LS documentations:
manual.limesurvey.org/Optional_settings#Use_one_time_passwords
manual.limesurvey.org/Manage_users
each site suggest different ways!
But all methods are not working with me.
Any other suggestions?
Where exactly in config.php I should put
or
Anyone was able to make this feature to work? Thanks!
manual.limesurvey.org/Optional_settings#Use_one_time_passwords
manual.limesurvey.org/Manage_users
each site suggest different ways!
But all methods are not working with me.
Any other suggestions?
Where exactly in config.php I should put
Code:
config['use_one_time_passwords'] = true;
Code:
$use_one_time_passwords = false;
Last edit: 5 years 5 months ago by azakaria.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
5 years 5 months ago #176484
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 , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic one-time passwords
I already give the good way and updated
manual.limesurvey.org/Optional_settings#Use_one_time_passwords
else : I never test this feature …
else : I never test this feature …
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- azakaria
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
5 years 5 months ago #176544
by azakaria
Replied by azakaria on topic one-time passwords
It worked!
Actually, the password should be saved as sha256
$passwd = hash('sha256', "mysecret");
then from MySQL:
update lime_users set one_time_pw=$password where users_name=survey_user
Thanks!
Actually, the password should be saved as sha256
$passwd = hash('sha256', "mysecret");
then from MySQL:
update lime_users set one_time_pw=$password where users_name=survey_user
Thanks!
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 5 months ago - 5 years 5 months ago #176548
by jelo
manual.limesurvey.org/Optional_settings#Use_one-time_passwords
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic one-time passwords
Small glitch in your anchor, so here is the direct link to your updated text passage:DenisChenu wrote: I already give the good way and updated manual.limesurvey.org/Optional_settings#Use_one_time_passwords
manual.limesurvey.org/Optional_settings#Use_one-time_passwords
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 5 years 5 months ago by jelo.
The following user(s) said Thank You: DenisChenu
The topic has been locked.