Open Source Content Management Framework

mgd_update_password_plain

  1. Description

mgd_update_password_plain -- Change a person's login information without encrypting the password

Description

`bool **mgd_update_password_plain** (int id, string username, string password)`

Minimum version: Midgard 1.0

Changes the username and password associated with a person record. The password is stored in the database in unencrypted form (!). Only administrators and the user himself may change the password.

Returns TRUE on success, FALSE on failure.

<?php  
      $id       = 13;  
      $username = "loki";  
      $password = "zegiklekkerniet";  
      mgd_update_password_plain($id, $username, $password);  
    ?>
Designed by Nemein, hosted by Kafit