Loading...
 
Skip to main content

Features / Usability


Problems with user login

Are there any known problems with the login procedure? I have now had two users report difficulties registering and logging into my site.

One user is adamant that he was not able to login for a second time, but was quite certain that he had entered the correct password, did not have caps-lock selected and that the password was not inserted by a password manager. (I think that he was using Firefox).

It's tempting to assume that the user has made a mistake, or even to assume that the user is plain stupid, but that is really unfair. In this case, I think he has tried reasonably hard and has a real problem. Is this an isolated experience?

Phil

I can confirm similar experiences. Entering the password (exactly the same) again (when logged in as admin) solves the problem. This is happening too frequently to be coincidence.

That is kind of a general question, but here are some things to check:

  • Maybe the users table in your database is corrupt?
  • Is this happening with all, or just one user?
  • Are there any "special" characters in the username or password?
  • Is the sessions path in your php configuration valid?
  • Remind users that their username is CaSe SeNsItIvE.
  • If you're using remote authentication, is there valid connection?




HTH,

-RickQuestion
Need more help? Try TikiWiki for Dummies SmartiesQuestion or read my Tiki Blog or visit my UserPage

First thanks to Mike for replying and confirming that I'm not the only person with this problem.

There are about 50 users registered at my site, so this cannot be problem experienced by everybody. The most recent registered on the 30th October, which is definitely after the user in question first had a problem.

I have just been testing and can reproduce the problem consistently. It is possible, that there is now a problem affecting all new users.

When I register as a new user, I receive an email with a link. When I follow this link, I get a message that the "account validated successfully" and I am then logged in. If I log out and then try to log back in, I get the message "Invalid username or password".

If, as suggested by Mike, I log in as admin and reset the password for the new user, then I can log in properly as the new user.

With regard to Rick's suggestions.

  1. I'm not an expert on the database tables. These is a table named tiki_users, but this appears to be empty. There is a table users_users which has a record for each registered user and is not obviously corrupt. phpMyAdmin has a command Check Table which indicates Status=OK.
  2. As described above, I was of the opinion that it was only isolated users, but it may now be all users.
  3. No special characters. I have been testing using only letters and digits.
  4. I'm a bit out of my depth with this question (about sessions path) and may have to contact my service provider. Is this a setting in php.ini? Could you tell me exactly which setting you mean? I will then try to check it out.
  5. It's not a problem with case sensitivity.
  6. I don't know anything about remote authentication, which I guess means that I'm not using it.


Thanks for the help so far, and I would be really thankful for any additional feedback,
Phil


On my page having the admin re-input the password fixes the issue.

Another workaround is not to use the login box on the landing page-- instead click on the 'Go to Login Page' link, then login from there.

I consider this to be a bug.

The workaround works on two separate sites on 3 separate computers.

I can't imagine users would figure this out on their own.

I tried removing the module:login from the page, but then there is no way for users to logout.

Hi,

I think I have now located the problem, and it is a plain bug in the PHP source code. I don't know whether it has been fixed in a later version (I am still running v1.9.9), but in fact I think it must have been.

The problem is in the file tiki-register.php.

There are two calls to the function $userlib->add_user in the file userslib.php. In both cases, the parameters are in the wrong order. Specifically, the 4th and 5th parameters, $realname and $provpass, are swapped round.

$realname is specified as an empty string, and the parameter is not actually used. Because they were swapped round, an empty string was stored as $provpass. After validation, this becomes the password (which might mean that you could log in with an empty password, but I doubt it).

Could somebody tell me how to submit this change to the source code, or alternatively, can one of the active developers integrate it into the source code, if it has not been fixed already?

Phil