The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (Linux)
|
Password Hash - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Password Hash (/showthread.php?tid=555) |
Password Hash - walkingby - Mar 7th, 2010 I'm using formtools as somewhat of a "registration" system. Basically, the user completes a basic registration form on the site. The data is then inserted directly into the ft_accounts table. The username and password are most important, everything else simply defaults. I'm using an md5 hash for the password. I've tested the hash value's being stored, and they seem to be correct. For example "5f4dcc3b5aa765d61d8327deb882cf99" should be "password" ...but for whatever reason, when the user tries to log in, I'm receiving a "password not correct" error. Any thoughts? Thanks! RE: Password Hash - Ben - Mar 7th, 2010 Hey Brian, Hmm... Are you double-encrypting the password? Form Tools does that for all client & admin account passwords, e.g. md5(md5("password")); That would be my first hunch. - Ben RE: Password Hash - walkingby - Mar 8th, 2010 Wow...I can't believe I didn't realize this from the start! That was exactly it. Thanks Ben! RE: Password Hash - Ben - Mar 11th, 2010 No worries! - Ben |