Generating Tokens

More
3 years 4 months ago #174601 by combitz
Replied by combitz on topic Generating Tokens
Thanks jelo,

Didn't see your reply earlier in the thread, thanks for the openssl info.
The topic has been locked.
More
3 years 4 months ago #174606 by jelo
Replied by jelo on topic Generating Tokens

The problem is PHP 7.2 deprecated the mcrypt method so Yii::app()->securityManager->generateRandomString(int) will always fail on PHP installs above 7.1


Yii checks if OpenSSL or MCrypt or /dev/urandom is available. On a Windows platform under PHP 7.2 both MCrypt (not available under PHP 7.2 or above) and /dev/unrandom (not available under windows) are not available. So OpenSSL is the only way under Windows PHP 7.2.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: combitz
The topic has been locked.
More
3 years 4 months ago #174614 by DenisChenu
Replied by DenisChenu on topic Generating Tokens


Yii checks if OpenSSL or MCrypt or /dev/urandom is available. On a Windows platform under PHP 7.2 both MCrypt (not available under PHP 7.2 or above) and /dev/unrandom (not available under windows) are not available. So OpenSSL is the only way under Windows PHP 7.2.

Maybe we need to test it when installing ? And show a warning (like imap etc …) or a danger

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.
More
3 years 4 months ago #174619 by combitz
Replied by combitz on topic Generating Tokens

Maybe we need to test it when installing ? And show a warning (like imap etc …) or a danger


I just had the same thought as it will get everyone installing from new as 7.2+ is the current recommended stable version going forward.

Thanks for the help, tokens working now :)
The topic has been locked.
More
3 years 4 months ago #174638 by DenisChenu
Replied by DenisChenu on topic Generating Tokens

I just had the same thought as it will get everyone installing from new as 7.2+ is the current recommended stable version …

Yes but we don't recommend Windows IIS ;)

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.
More
3 years 4 months ago #174640 by jelo
Replied by jelo on topic Generating Tokens
I would recommend to develop the checkroutines of the installer into a core part (or core extension), which can be used for checking not only during installation but all the time (like phpinfo and version modal window). That way the checking routines get better, cause more people use them.
When your provider changes to PHP 7.2, the running installation won't profit from the installer check routines for mcrypt etc.

The "dictator" style of the installation check should be optional ;-)

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now