public function regeneratePassword()
    {
        $clean_password = generatePassword(6, 4);
        $password = md5($clean_password);
        $this->db()->executeUpdate(
            "UPDATE {$this->table} SET password = ? WHERE ID = ?",
            array($password, $this->getId())
        );

        return $clean_password;
    }
public function regeneratePassword()
    {
        $clean_password = generatePassword(6, 4);
        $password = md5($clean_password);
        $this->db()->executeUpdate(
            "UPDATE {$this->table} SET password = ? WHERE ID = ?",
            array($password, $this->getId())
        );

        return $clean_password;
    }
public function regeneratePassword ( ) { $ clean_password = generatePassword ( 6 , 4 ) ; $ password = md5 ( $ clean_password ) ; $ this -> db ( ) -> executeUpdate ( "UPDATE {$this->table} SET password = ? WHERE ID = ?" , array ( $ password , $ this -> getId ( ) ) ) ; return $ clean_password ; }
Regenerates and sets the new password for a User.

@return String password : The new Password.
Regenerates and sets the new password for a User .