Automatically Login to Zoho Account

Automatically Login to Zoho Account

I know this is not really a supported feature, but I had previously devised a way to accomplish this.  Unfortunately, my solution has broken and I'm unable to get it to work now.  I thought I'd post it and see if anyone has an idea of what changed or how to correct the script.

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <title></title>
  5. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  6. <script>
  7. $(document).ready(function() {

  8.     $.ajax({  
  9.         type:"GET",        
  10.         url: "https://accounts.zoho.com/login",  // Send the login info to this page
  11.         data: { LOGIN_ID: "XXXXX", PASSWORD: "XXXXX", IS_AJAX: "true", remember :-1,  servicename: "ZohoReports"}, 
  12.         dataType: "jsonp", 
  13.         timeout: 200000,
  14.         complete: function() { location.href="https://reports.zoho.com";}      
  15.     });
  16. });
  17. </script>
  18. </head>

  19. <body>
  20. </body>
  21. </html>