lib/octofish.js
function() {
            auth.type = 'basic';

            auth.username = process.env.GHusername || octofish.config.auth.username || null;
            auth.password = process.env.GHpassword || octofish.config.auth.password || null;

            if ( !auth.password || !auth.username ) {
                return false;
            } else {
                octofish.github.authenticate( auth );
                return true;
            }
        }
function() {
            auth.type = 'basic';

            auth.username = process.env.GHusername || octofish.config.auth.username || null;
            auth.password = process.env.GHpassword || octofish.config.auth.password || null;

            if ( !auth.password || !auth.username ) {
                return false;
            } else {
                octofish.github.authenticate( auth );
                return true;
            }
        }
function ( ) { auth . type = 'basic' ; auth . username = process . env . GHusername || octofish . config . auth . username || null ; auth . password = process . env . GHpassword || octofish . config . auth . password || null ; if ( ! auth . password || ! auth . username ) { return false ; } else { octofish . github . authenticate ( auth ) ; return true ; } }
Completes basic authorisation or returns false on failure
@todo Currently only checks that a username and password have been specified, not that they have successfully completed authentication
@return {Boolean}
Completes basic authorisation or returns false on failure