|
From: Benjamin C. <bc...@us...> - 2001-08-05 03:52:59
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv12448
Modified Files:
user.php
Log Message:
Encrypt the password upon changing if that option is set
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/user.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- user.php 2001/07/10 04:01:54 1.2
+++ user.php 2001/08/05 03:52:56 1.3
@@ -19,7 +19,13 @@
return;
}
- $q->query("update User set Password = '$pass1' where UserID = $u");
+ if (ENCRYPTPASS) {
+ $mpassword = md5($pass1);
+ } else {
+ $mpassword = $pass1;
+ }
+
+ $q->query("update User set Password = '$mpassword' where UserID = $u");
$t->set_file('content', 'passwordchanged.html');
}
|