Changeset 429


Ignore:
Timestamp:
09/16/09 14:02:29 (12 years ago)
Author:
smurzch2
Message:

Check the status of oscam_auth_client() and display the error code if any.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/merlin/src/sharing/newcamd.c

    r426 r429  
    580580            log_debug("account->pwd=%s", passwdcrypt);
    581581            if (strcmp((char *) pwd, (const char *) passwdcrypt) == 0) {
     582                int auth_reject;
    582583                client[cs_idx].crypted = 1;
    583                 oscam_auth_client(account, NULL);
    584                 log_normal("user %s authenticated successfully (using client %02X%02X)", usr, mbuf[0], mbuf[1]);
    585                 ok = 1;
     584                auth_reject = oscam_auth_client(account, NULL);
     585                if (!auth_reject) {
     586                    log_normal("user %s authenticated successfully (using client %02X%02X)", usr, mbuf[0], mbuf[1]);
     587                    ok = 1;
     588                } else {
     589                    log_normal("user %s did not authenticate (using client %02X%02X) (error: %d)", usr, mbuf[0], mbuf[1], auth_reject);
     590                }
     591
    586592                break;
    587593            } else {
Note: See TracChangeset for help on using the changeset viewer.