Gossamer Forum
Home : Products : DBMan : Customization :

Password Change Mod

Quote Reply
Password Change Mod
I have installed your entire Password lookup mod JPDeni and it is working fine except that when I try to change a password, it deletes the entire list of people in the file and writes only the UserId that is being changed.

It works fine when a new user registers but if you try and change the password it will delete all the users. It isn't just writing to the persons information.

All it probably needs is code to make it write to only that persons UserId. Please help!
Quote Reply
Re: Password Change Mod In reply to
I'm having the exact same problem...default.pass gets completely rewritten when I use the change password mod (part of secure lookup with full implementation).

Also, a question -- what should be shown on the admin display in the 'email' field? Mine are always blank.
Quote Reply
Re: Password Change Mod In reply to
It seems as though that is the only thing that does not work about this awsome mod. I figure it is just a code error in the way it writes to the database file in sub change_password. I have compared sub change_password to sub change_email, sub get_email, sub lookup, and sub signup and I can't seem to see where the error lies in sub change_password. <whimper>Help!
Quote Reply
Re: Password Change Mod In reply to
Jeremy, I've done the same comparisons...no luck. Still broken. This is the best mod I've run across -- I wonder if you and I are the only ones to have this password change problem? Searching this forum turns up nothing, as far as I can see.
Quote Reply
Re: Password Change Mod In reply to
The mod works. You may have a syntax error or some other problem unrelated to the code. I discovered problems when I added it.

I added the password mod to an existing database and had some problems different than the two of you experienced. A few records did not have e-mail addresses and it may have thrown off the records. The password file ended up giving admin privileges to a few people. I suspect the password file may be where your problem is as well.

If you are adding the password mod to an existing database that you added the e-mail field to, you need to make sure that an | is inserted into every record where the e-mail field is located. Every record. Miss just one and it will throw off your database. Eliot has a script that will insert the pipe to character (|) or you can do it manually.

You may need to edit the password file and make sure everything is where it is supposed to be. Even that may not be enough, though. From within the program, as admin, I had to remove admin permissions to others and add the e-mail address to all records.

Eventually, I was able to solve all my problems with distortions and the password mod is working fine. I'm glad I only had a couple of hundred records to deal with. It would have been a daunting task with many more times that amount.

A lesson to others, it is best to add these mods before you start adding records to your database. It isn't always possible, but it is the best way to do it.

[This message has been edited by ER (edited September 12, 1999).]