Loading...
 
Skip to main content

Features / Usability


You are viewing a reply to First login

Re: First login

Okay, so I played around with this a bit myself, and I've developed a hack to fix the issue, included in the attachment are "tiki-register.php" and "tiki-login_validate" from version 1.9.9.

So the problem is definitely that the password isn't stored in provpass var in users_users table. This might be due to the table being incorrectly initialised or some bug in the code somewhere. Anyway in the mean-time I have a workaround.

in tiki-register
-A new temporary user is created using the temporary password hash as username
-global var for storing plaintext passwords set to yes temporarily
-Actual password is stored in plaintext in temporary user
-global var for storing password is returned to original value

in tiki-login_validate
-gets plaintext password from temporary user
-using $userlib->change_user_password sets the real user's password
-remove temporary user.

Its a hack certainly, but if you think about it its not much less secure than the way that it should work. The password is always in plaintext temporarily. As far as I'm concerned though, this is a silly way to make users valid/invalid. There should be another variable activated/deactivated, this way the admin could manually enable or disable accounts easily. Also the password would never have to be stored in plain text.