'The update method will update the credentials for the user provided'

def update(self):

    try:
        options = [self.user, self.host, self.pwd]
        (rc, out, err) = self.run_command('change_password', options)
    except EjabberdUserException:
        (rc, out, err) = (1, None, 'required    attribute(s)    missing')
    return (rc, out, err)
