Was this page helpful?

Set a New Password

    Description of the code sample

    The following code example sets newuser1's password to "newpassword":

    Sample Code

    Plug p = Plug.New("http://deki-hayes/@api/deki");
    p.At("users", "authenticate").WithCredentials("admin", "password").Get();
    DreamMessage msg = DreamMessage.Ok(MimeType.TEXT, "newpassword");
    p.At("users", "=newuser1", "password").Put(msg);

    Implementation notes 

    Add notes about requirements or config values

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by