Loading...
 
Features / Usability

Features / Usability


I forgot my password link doesn't appear. How to check?

posts: 13 United States

We recently have tikiwiki-1.9.7 installed on an internal test host, which runs SUN Solaris 10 11/06, Apache 2.2.4, PHP 5.2.3 (mod_php + APC), and MySQL 5.0.45. So far so good, other than one annoying thing that I can't make it to work: making the 'I forgot my password' link to appear in the login box.

I did the change this morning (Califorina time). Before, both 2. and 3. below were not checked, so in the users_users table, a hash was used for both the admin and a test user.

I don't have any test user setup with a plaintext password yet. The test host doesn't have a email system either (its OS installation is quite stripped).

I have double checked the following several times:

0. login as 'admin'
1. click on 'Admin home' -> 'Login' -> 'User registration and login'
2. check 'Remind passwords by email'
3. check 'Store plaintext passwords'

I know 3. is insecure, but the test host is not exposed, and I am just trying to get 2. to appear and to have an easy way to know it works. I tried to set 'Remember me feature' by selecting 'users and admins' and the check box showed up right away.

I am new to tikiwiki, but I am more than happy to dig. If someone could give me a pointer or two as to where to start.

Thanks,

--Peter

posts: 3665 United States

It should work fine. Try:

  1. Clearing the browser's cache.
  2. Clearing Tiki's cache.


Note that you do not have to use the Store as plaintext option.

  • If you do, the actual password will be mailer tot he user.
  • Otherwise, a hash is sent, with a link. The user clicks the link and is prompted to select a new password.


See the docs for details.

HTH,

-Rick
-My Tiki Blog: Help, Hints, and Hacks

posts: 13 United States

Hi Rick,

Thanks for your suggestions.

> It should work fine. Try:
> #Clearing the browser's cache.

Done. No effect.

> #Clearing Tiki's cache.

Done. No effect. I cleaned out the Smarty template_c by renaming it and mkdir another one, chown -R www:www templates_c, where www and www are user and group identity of the Apache server runs under.

>
> Note that you do not have to use the Store as plaintext option.
> *If you do, the actual password will be mailer tot he user.
> *Otherwise, a hash is sent, with a link. The user clicks the link and is prompted to select a new password.

Thanks. I read about this in the doc.

I even logged in as 'admin' -> 'Admin home' -> 'General' and switched among different themes just to see if our own theme and tpl files were the cause. Well no difference either. The 'I forgot my pass' link simply refuses to show up.

Grepping in the source directory, I noticed that the templates/tiki-remind_password.tpl contains the {tr}I forgot my password{/tr}, and tiki-remind_password.php includes the aforementioned tpl. But afterwards, I was lost.

Like I said, I am new to tikiwiki (just picked it up a few days ago from a co-worker who left for summer break), so I am not sure how to debug this application yet. I would appreciate a hint or two to get me going further, e.g. do I need to check any other PHP scripts or Smarty templates? How about any tables in the tiki MySQL database?

Thanks,

--Peter


posts: 1817 Catalan Countries
You can try to hard code it in your /templates/modules/mod-login_box.tpl to this link: tiki-remind_password.php
posts: 13 United States

> You can try to hard code it in your /templates/modules/mod-login_box.tpl to this link: tiki-remind_password.php

Thanks for the tip. In this quiet Sunday evening, I took a look of the /templates/modules/mod-login_box.tpl, and immediately spotted a bug. In fact, the tiki-remind_password.php should be linked in even when both $allowRegister ne 'y' and $change_password ne 'y'. The users_users table could be filled by data from other databases. This possibility is not considered by the developers but it's actually very common. Once added in, the 'I forgot my password' link appears immediately.

--Peter


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting