title: SAPUI5 - Login Page
body: <p>I'm building an app that communicates with an IBM software through REST. 
  The thing is that I have a POST Method in the NewTicket.controller, but I need to use the user and password on this method to open the ticket. 
  How can I send the variables (or other thing) that I have on my Login.controller to the NewTicket.controller?</p>
  
  <p>This is my Post Method:</p>
  
  <pre><code>enviar:function() {
          var description = this.byId("desc").getValue(); //Recebe o resumo
          var long_description = this.byId("long_desc").getValue(); //Recebe a descrição
          jQuery.sap.require("sap.m.MessageToast");
          sap.m.MessageToast.show(user);
          jQuery.sap.require("sap.m.MessageBox");
          // open a fully configured message box
          sap.m.MessageBox.show("Confirmar a abertura do chamado?",
                  sap.m.MessageBox.Icon.QUESTION,
                  "Confirmar",
                  [sap.m.MessageBox.Action.YES, sap.m.MessageBox.Action.NO], 
                  function(sResult) {
              if(sResult == sap.m.MessageBox.Action.YES)    //Se clicar em SIM (popup com numero do chamado e tela com lista) 
              {
                  var oModel = new sap.ui.model.json.JSONModel();
                  var url = "http://xxx.xxx.xxx.xx:xxxx/maxrest/rest/mbo/sr/?_lid=" + **user** + "&amp;_lpwd=" + **password** +"&amp;description="+ description +"&amp;description_longdescription=" + long_description + "&amp;_format=json&amp;_compact=true&amp;_verbose=true";
                  var aData = jQuery.ajax({
                      type : "POST",
                      contentType : "application/json",
                      url : url,
                      dataType : "json",
                      async: false, 
                      success : function(data,textStatus, jqXHR) {
                          oModel.setData({modelData : data}); 
                          sap.m.MessageBox.show("ABRIU");
                      },
                      error : function(data,textStatus, jqXHR) {
                          oModel.setData({modelData : data}); 
                          sap.m.MessageBox.show(textStatus);
                      }
              })}
              else  // Se clicar em NÃO
             {
             }
          },
                  sap.m.MessageBox.Action.YES);
  </code></pre>
  
  <p>Thank you in advance.</p>