vue-components/connection-list/component.js
/**
     * Logs into Salesforce using the specified credentials.  Sends the results to
     * the specified callback function.
     * @param {utils.SFE_Connection} conn
     *   Logs into Salesforce using the specified credentials.  Sends the results to
     *   the specified callback function.
     * @param {boolean} isTest
     *   Indicates whether or not to just test the login.
     * @param {function(Error, import('jsforce').UserInfo)} callback
     *   The callback function called after trying to log in.  The first parameter
     *   indicates the data that is returned if successful.  The second parameter
     *   indicates the error object if failed.
     */
Logs into Salesforce using the specified credentials.  Sends the results to
the specified callback function.
@param {utils.SFE_Connection} conn
Logs into Salesforce using the specified credentials.  Sends the results to
the specified callback function.
@param {boolean} isTest
Indicates whether or not to just test the login.
@param {function(Error, import('jsforce').UserInfo)} callback
The callback function called after trying to log in.  The first parameter
indicates the data that is returned if successful.  The second parameter
indicates the error object if failed.
Logs into Salesforce using the specified credentials . Sends the results to the specified callback function . @param { utils . SFE_Connection } conn Logs into Salesforce using the specified credentials . Sends the results to the specified callback function . @param { boolean } isTest Indicates whether or not to just test the login . @param { function ( Error import ( ' jsforce ' ) . UserInfo ) } callback The callback function called after trying to log in . The first parameter indicates the data that is returned if successful . The second parameter indicates the error object if failed .
login(conn, isTest, callback) {
      utils.login(conn, isTest, (err, res) => {
        if (err) {
          this.showMsgModal('Connection Failed', err.message, 'OK');
        }
        else {
          this.showMsgModal('Connection Successful', 'The credentials entered are correct.', 'OK');
        }
        return callback(err, res);
      });
    }
login ( conn , isTest , callback ) { utils . login ( conn , isTest , ( err , res ) => { if ( err ) { this . showMsgModal ( 'Connection Failed' , err . message , 'OK' ) ; } else { this . showMsgModal ( 'Connection Successful' , 'The credentials entered are correct.' , 'OK' ) ; } return callback ( err , res ) ; } ) ; }
Logs into Salesforce using the specified credentials.
Logs into Salesforce using the specified credentials .