mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -24,4 +24,15 @@ function authenticate($username,$password)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function passwordscanchange()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function changepassword($username,$newpassword)
|
||||||
|
{
|
||||||
|
# Not supported
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
@@ -34,4 +34,14 @@ function authenticate($username,$password)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function passwordscanchange()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function changepassword($username,$newpassword)
|
||||||
|
{
|
||||||
|
# Not supported (for now)
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -13,4 +13,16 @@ function authenticate($username,$password)
|
|||||||
return 0;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user