function minibond_resetpassword()
{
    ob_end_clean();
    $minibonds_helper = new MiniBondsHelper();
    $email = trim($_REQUEST['email']);
    $password = trim($_REQUEST['password']);
    $exist_id = username_exists($email);
    $user = get_user_by('login', $email);
    $details = $minibonds_helper->getUserFromZoho($email);
    $fl = $details->result->Contacts->row->FL;
    $contactid = $fl[0]->content;
    $myxml = '<Contacts>
            <row no="1">
                <FL val="Password">' . md5($password) . '</FL>
            </row>
            </Contacts>';
    //wp_set_password( $password, $user->ID );
    $update = $minibonds_helper->updateZohoUser($myxml, $contactid);
    if ($update == 'true') {
        echo json_encode(array('loggedin' => true, 'message' => __('Password successfully updated, for contact ID ' . $contactid)));
    }
    die;
}