Quote:
Originally Posted by gspx
I didn't see anything on encrypting the users passwords though, you might like to try MD5 storing them and using the php md5 function
|
CREATE TABLE users (
username varchar(30) primary key,
password varchar(32),
userid varchar(32),
userlevel tinyint(1) unsigned not null,
email varchar(50),
timestamp int(11) unsigned not null
);
"password varchar(32)" - 32chars? md5 you think?
"$result = $database->confirmUserPass($subuser, md5($subpass));" - yup.
"if($database->addNewUser($subuser, md5($subpass), $subemail))" - md5 all the way.
It's a very solid user_auth system, as you'd expect from evolt; they dont post a lot of crap.
|