Changeset 2140


Ignore:
Timestamp:
Jul 11, 2016, 9:24:53 AM (3 years ago)
Author:
joamuran
Message:

fixed

Location:
admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/lib/utils.js

    r2115 r2140  
    484484
    485485        // Building credentials
    486         if(credentials===null)
    487                 n4dargs.push("");
     486        if(credentials===null || credentials===""){
     487                //alert("credentials is: "+credentials);
     488                n4dargs.push("");}
    488489        else if (n4dmethod!="validate_user") n4dargs[0]=credentials;
    489490                        else n4dargs=credentials;
     
    498499
    499500        for (var i in arglist) n4dargs.push(arglist[i]);
     501       
     502        // Set public key for this connection with serverKey
     503        Utils.crypt.setPublicKey(sessionStorage.serverKey);
    500504       
    501505        $.ajax(
     
    504508                   async: true,
    505509                   data:{ method: n4dmethod,
    506                                   args: JSON.stringify(n4dargs)},
     510                                  //args: JSON.stringify(n4dargs)},
     511                                  args: Utils.crypt.encrypt(JSON.stringify(n4dargs))},
    507512                   success: function(args){
    508513                                     callback(args);
  • admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/n4d.php

    r2115 r2140  
    111111 
    112112  $args_coded=n4dRSADecrypt($_POST["args"]);
    113   error_log("eeeeeeeeeeeeeeeee");
    114   error_log($args_coded);
     113 
    115114  $args=json_decode($args_coded);
    116115  if (gettype($args)=="NULL") $args=array();
Note: See TracChangeset for help on using the changeset viewer.