From 9aec4d669f8d9efb74372e3755131e042c62761f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 15 Aug 2008 18:39:18 +0000 Subject: Central: Add change password Refs #25 and closes #35 --- central/trunk/includes/instadisc.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'central/trunk/includes/instadisc.php') diff --git a/central/trunk/includes/instadisc.php b/central/trunk/includes/instadisc.php index 96f4940..95aeb88 100644 --- a/central/trunk/includes/instadisc.php +++ b/central/trunk/includes/instadisc.php @@ -397,4 +397,10 @@ function instaDisc_cancelSubscription($username, $url) return false; } +function instaDisc_changePassword($username, $password) +{ + $setpass = "UPDATE users WHERE username = \"" . mysql_real_escape_string($username) . "\" SET password = \"" . mysql_real_escape_string(md5($password)) . "\""; + $setpass2 = mysql_query($setpass); +} + ?> -- cgit 1.4.1