Name
mgd_update_password -- Change username and password of a person
Synopsis
bool mgd_update_password
(int id, string username, string password);
Description
Changes the username and password associated with a person
record. The password is stored in the database in encrypted
form (using unix crypt). Only administrators and the user
himself may change the password.
Returns true if succesfull. Returns false on failure.
Example
<?php
$id = 13;
$username = "loki";
$password = "zegiklekkerniet";
mgd_update_password( $id, $username, $password );
?>