Check out the LimeSurvey source code on GitHub!

Persistent Password Issue - Can't Log in

More
4 years 1 week ago #90966 by georgebradford
Hi,

Several weeks ago I posted a new installation log-in problem I have been having, and I understand it would seem to be specific to my installation and not a bug with LS 2.0.

That notwithstanding, I did follow all the links and suggestions, including modifying the UserIdentity.php file to give me temporary access, which does not work for me. Mazi thought that perhaps the problem lies with my PHP environment, so I created the file he suggested and posted the URL. Since I have not heard back, my assumption now is that my PHP environment is neither the source of the problem.

I cannot log into my installation. The auto generated password is never accepted.

What advice can anyone give me at this point? Take it down and attempt a re-install? Keep the current install but upload all new files to the already created directories? Drink scotch and mourn? ;-)

Please someone reply. Thank you in advance... you cannot know how I want to get this working since I've been using an older version since 2007...

-George

georgebradford wrote:

georgebradford wrote: Hi Mazi,

Thank you for your reply... I was thinking the same thing ie that others would have reported this were it not something specific with my installation. Your help is very much appreciated.

Here is the link:

heybradfords.com/LS2/phpinfo.php

BTW, happy New Year! :-)

-George


Mazi,

Were you ever able to see if there is anything wrong with my installation?

-George

Please Log in to join the conversation.

More
4 years 6 days ago #91016 by georgebradford
Should all the lines in the file config-defaults.php also be in the config.php file?

-George

Please Log in to join the conversation.

More
4 years 6 days ago #91017 by georgebradford
Also, from the instruction below, does it make a difference that in my UserIdentity.php file, the first line does not have "false || "?

-George

rwweb wrote: Here is a workaround to allow you to log in.

In file: [lime-install-path]/application/core/UserIdentity.php
Look for these lines (about line 46)

else if (false || $sStoredPassword !== hash('sha256', $this->password))
{
   $this->errorCode = self::ERROR_PASSWORD_INVALID;
}

and change them to:
// else if (false || $sStoredPassword !== hash('sha256', $this->password))
// {
//   $this->errorCode = self::ERROR_PASSWORD_INVALID;
// }
Then log in using your admin user id and any password.
Once logged in, reset your password and log out.
Change the above code back (remove the comments) and you should be able to log in normally.

Test your installation by trying to log in with an invalid password to make sure you have not left logins open.

Please Log in to join the conversation.

More
4 years 6 days ago #91018 by georgebradford
Really wishing someone would reply to help. Thanks.

-George

Please Log in to join the conversation.

More
4 years 6 days ago #91019 by georgebradford
So I thought I might try the instructions to reset my password using the instructions at www.limesurvey.org/en/forum/installation...log-in/post?do=reply

Which are:
I forgot my admin password. How do I reset it?

For version 1.47 to 1.53 only: Download this file and copy it to /<your limesurveydir>/admin/install/ .
For version 1.7 or later: Restore your /<your limesurveydir>/admin/install/ directory from the download package
Execute resetadminpw.php using your browser by pointing it to
http://www.your_domain.com/your_limesurvey_dir/admin/install/resetadminpw.php
After removing the /install directory again you should be able to login with $defaultuser (Default: admin) and $defaultpass (Default: password) set in config.php.

But I note that in the current download version (limesurvey200plus-build130110.zip), there is no "install" directory with the admin directory.

Should I replace the two files in the admin directory and try that? (While keeping the originals safe once the procedure is run?)

-George

Please Log in to join the conversation.

More
4 years 6 days ago #91021 by georgebradford
Just tried Firefox to log into my limesurvey installation, and that worked. I then changed the password, logged out, and tried again. That worked too.

But then I went back to Chrome and tried, and it doesn't work still, even after clearing the cache.

Wonder what it is...

-George

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form