change password option in the auth modules, not used in the webinterface yet

git-svn-id: http://www.observium.org/svn/observer/trunk@990 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-03-06 00:00:05 +00:00
parent 5e3adf4fc2
commit cb7c59505f
3 changed files with 33 additions and 0 deletions

View File

@@ -24,4 +24,15 @@ function authenticate($username,$password)
return 0;
}
function passwordscanchange()
{
return 0;
}
function changepassword($username,$newpassword)
{
# Not supported
}
?>

View File

@@ -34,4 +34,14 @@ function authenticate($username,$password)
return 0;
}
function passwordscanchange()
{
return 0;
}
function changepassword($username,$newpassword)
{
# Not supported (for now)
}
?>

View File

@@ -13,4 +13,16 @@ function authenticate($username,$password)
return 0;
}
function passwordscanchange()
{
return 1;
}
function changepassword($username,$newpassword)
{
$encrypted = md5($password);
$sql = "UPDATE `users` SET password`='$encrypted' WHERE `username`='".$_SESSION['username']."'";
$query = mysql_query($sql);
}
?>