Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

allowing users to change password

Quote Reply
allowing users to change password
I am modifying my linksql 2.1.2 installation to allow users to change their profile such as password and other customized fields in the Users table. I have added a subroutine to the longin.pm file and when it is called, it displays a modify form with the user's current info populated in the form. I have got it working except for the password filed. When I have modified the password (from '1234' to '123456') and clicked submit, I got this error:
Code:

GT::SQL::Driver::MYSQL::sth (3472): Executing query: SELECT Username FROM lsUsers
WHERE Password = 123456 AND Username = 'user1'
from Links::Authenticate::auth_valid_user at
e:/www/cgi-bin/linksql/admin/Links/Authenticate.pm line 70

It seems that the program check my existing username and password before I am trying to modify the password in the table. For example, if my old password is '1234', I changed the password to '123456' in the modify form, it will use the new password '123456' to query the user table to see if the username and password match or not.

I even added a function to the Authenticate.pm file and called that from login.pm before I update the password in the table. I didn't work either.

Please advise me how to get around the authentication process and have password changed.

thank you.

Last edited by:

long327: Dec 3, 2004, 5:14 PM
Subject Author Views Date
Thread allowing users to change password long327 2768 Dec 3, 2004, 5:12 PM
Thread Re: [long327] allowing users to change password
Andy 2718 Dec 4, 2004, 12:15 AM
Thread Re: [Andy] allowing users to change password
VishalT 2696 Dec 4, 2004, 9:05 AM
Thread Re: [NeedScripts.Com] allowing users to change password
long327 2691 Dec 4, 2004, 4:42 PM
Post Re: [long327] allowing users to change password
Andy 2701 Dec 5, 2004, 12:03 AM