Welcome, Guest
Username: Password: Remember me

TOPIC: Persistent Password Issue - Can't Log in

Persistent Password Issue - Can't Log in 1 year 10 months ago #90966

  • georgebradford
  • georgebradford's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 40
  • Thank you received: 1
  • Karma: 1
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
The administrator has disabled public write access.

Re: Persistent Password Issue - Can't Log in 1 year 10 months ago #91016

  • georgebradford
  • georgebradford's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 40
  • Thank you received: 1
  • Karma: 1
Should all the lines in the file config-defaults.php also be in the config.php file?

-George
The administrator has disabled public write access.

Re: Persistent Password Issue - Can't Log in 1 year 10 months ago #91017

  • georgebradford
  • georgebradford's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 40
  • Thank you received: 1
  • Karma: 1
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.
The administrator has disabled public write access.

Re: Persistent Password Issue - Can't Log in 1 year 10 months ago #91018

  • georgebradford
  • georgebradford's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 40
  • Thank you received: 1
  • Karma: 1
Really wishing someone would reply to help. Thanks.

-George
The administrator has disabled public write access.

Re: Persistent Password Issue - Can't Log in 1 year 10 months ago #91019

  • georgebradford
  • georgebradford's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 40
  • Thank you received: 1
  • Karma: 1
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
The administrator has disabled public write access.

Re: Persistent Password Issue - Can't Log in 1 year 10 months ago #91021

  • georgebradford
  • georgebradford's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 40
  • Thank you received: 1
  • Karma: 1
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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.187 seconds
Donation Image