[Phpslash-commit] CVS: phpslash-ft/class slashAuth.class,1.2,1.3
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-01-23 00:23:34
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv6110/phpslash-ft/class Modified Files: slashAuth.class Log Message: store password as md5 Index: slashAuth.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/slashAuth.class,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** slashAuth.class 2001/10/17 17:11:27 1.2 --- slashAuth.class 2002/01/23 00:23:29 1.3 *************** *** 87,94 **** $uid = false; $q = "SELECT * FROM psl_author WHERE author_name = '$username' ! AND password = '$password'"; $this->db->query($q); --- 87,95 ---- $uid = false; + $md5_pw_net = md5("$username:$password"); $q = "SELECT * FROM psl_author WHERE author_name = '$username' ! AND password = '$md5_pw_net'"; $this->db->query($q); |