int bone_reqpassword(BONEHANDLE bhnd, const char *username, const char *email)

Description
Requests the password for your Bone username in case you have forgotten it.

Callback
BONE_CALLBACK_REQPASSWORD

Notes
The function parameters are the BONEHANDLE, Bone username, and e-mail address.  The BONEHANDLE is destroyed after the function's callback is called.  If successful, your Bone password will be e-mailed to the address you provided.  You must call this function with a BONEHANDLE which is not logged in.

Example

bone_setcallback(BONE_CALLBACK_REQPASSWORD, callback_reqpassword);

BONEHANDLE bnd;
bnd = bone_create();
if (!bnd)
{
    printf("Unable to create BONEHANDLE.\n");
    exit(1);
}
else
{
    if (bone_reqpassword(bnd,"boneuser","bonester@imatowns.com"))
        printf("Unable to request password (reason %d).\n",bone_getlasterror());
}
 
 

void callback_reqpassword(BONEHANDLE bnd, int errorcode)
{
    if (errorcode)
    {
        printf("Unable to request password (reason: %d).",errorcode);
    }
}