Permalink
Browse files

Fixes a few incorrect comments

  • Loading branch information...
mcauser committed Jan 22, 2014
1 parent 8738308 commit f2d9aae89af69d2854f402ac0e272845294faae7
Showing with 13 additions and 13 deletions.
  1. +13 −13 lib/services/github.js
View
@@ -28,7 +28,7 @@ exports.authenticateUser = function(req, res, next, callback)
// Set placeholder variables to hold our data
var data = {
githubUser: false, // Github user
- sydjsUser: false // GitHub user
+ sydjsUser: false // SydJS user
}
// Initalise GitHub credentials
@@ -92,10 +92,10 @@ exports.authenticateUser = function(req, res, next, callback)
}
- // Function to create GitHub user
+ // Function to create SydJS user
var createSydjsUser = function() {
- console.log('[services.github] - Creating GitHub user...');
+ console.log('[services.github] - Creating SydJS user...');
console.log('------------------------------------------------------------');
// Define data
@@ -116,23 +116,23 @@ exports.authenticateUser = function(req, res, next, callback)
website: data.githubUser.profile._json.blog
};
- console.log('[services.github] - GitHub user create data:', userData );
+ console.log('[services.github] - SydJS user create data:', userData );
// Create user
data.sydjsUser = new User.model(userData);
- console.log('[services.github] - Created new instance of GitHub user.');
+ console.log('[services.github] - Created new instance of SydJS user.');
console.log('------------------------------------------------------------');
return saveSydjsUser();
}
- // Function to save GitHub user
+ // Function to save SydJS user
var saveSydjsUser = function() {
- // Save the GitHub user data
- console.log('[services.github] - Saving GitHub user...');
+ // Save the SydJS user data
+ console.log('[services.github] - Saving SydJS user...');
console.log('------------------------------------------------------------');
var userData = {
@@ -151,21 +151,21 @@ exports.authenticateUser = function(req, res, next, callback)
}
};
- console.log('[services.github] - GitHub user update data:', userData );
+ console.log('[services.github] - SydJS user update data:', userData );
data.sydjsUser.set(userData);
data.sydjsUser.save(function(err) {
if (err) {
console.log(err);
- console.log("[services.github] - Error saving GitHub user.");
+ console.log("[services.github] - Error saving SydJS user.");
console.log('------------------------------------------------------------');
return callback(err);
} else {
- console.log("[services.github] - Saved GitHub user.");
+ console.log("[services.github] - Saved SydJS user.");
console.log('------------------------------------------------------------');
if ( req.user )
@@ -179,10 +179,10 @@ exports.authenticateUser = function(req, res, next, callback)
}
- // Function to sign in GitHub user
+ // Function to sign in SydJS user
var signinSydjsUser = function() {
- console.log('[services.github] - Signing in GitHub user...');
+ console.log('[services.github] - Signing in SydJS user...');
console.log('------------------------------------------------------------');
var onSuccess = function(user) {

0 comments on commit f2d9aae

Please sign in to comment.