summaryrefslogtreecommitdiffstats
path: root/web/lib/acctfuncs.inc
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2005-02-25 19:43:19 +0100
committerpjmattal <pjmattal>2005-02-25 19:43:19 +0100
commit42c20c39553eb40e738eac3f4ea50fc6238b24c5 (patch)
tree9ec386af093e52261eac0f50dacc1fb2fb544448 /web/lib/acctfuncs.inc
parentf4f248387dbbe4225a474c0bf7d08727b43993cb (diff)
downloadaur-42c20c39553eb40e738eac3f4ea50fc6238b24c5.tar.gz
aur-42c20c39553eb40e738eac3f4ea50fc6238b24c5.tar.xz
fixed bug 2263
Diffstat (limited to 'web/lib/acctfuncs.inc')
-rw-r--r--web/lib/acctfuncs.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc
index 52d69c67..996a70c6 100644
--- a/web/lib/acctfuncs.inc
+++ b/web/lib/acctfuncs.inc
@@ -280,7 +280,6 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="",
#
#md5 hash the password
- $P = md5($P);
$q = "UPDATE Users SET ";
$q.= "Username = '".mysql_escape_string($U)."'";
if ($T) {
@@ -293,7 +292,7 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="",
}
$q.= ", Email = '".mysql_escape_string($E)."'";
if ($P) {
- $q.= ", Passwd = '".mysql_escape_string($P)."'";
+ $q.= ", Passwd = '".mysql_escape_string(md5($P))."'";
}
$q.= ", RealName = '".mysql_escape_string($R)."'";
$q.= ", LangPreference = '".mysql_escape_string($L)."'";