Permalink
Browse files

Move user creation message to lib

  • Loading branch information...
1 parent 294486b commit 36580d9cc9eca82290f1bc6f79616e3d2c6fc1e1 Sebastian Kippe committed Feb 21, 2012
Showing with 3 additions and 4 deletions.
  1. +1 −0 lib/express-storage.js
  2. +1 −1 package.json
  3. +1 −3 server.js
View
@@ -115,6 +115,7 @@ exports.storage = (function() {
}
function addUser(userId, password, callback) {
+ console.log('creating user '+userId+' with password '+password);
initRedis(function(){
redisClient.set('user:'+userId, password, function(err, data) {
redisClient.quit();
View
@@ -1,7 +1,7 @@
{
"name": "express-storage",
"description": "Light-weight remoteStorage provider",
- "version": "0.1.0-4",
+ "version": "0.1.0-5",
"homepage": "https://github.com/basti/express-storage",
"author": {
"name": "Michiel de Jong, Sebastian Kippe, Garret Alfert",
View
@@ -132,7 +132,5 @@ if (!module.parent) {
console.log("Express server listening on port %d", config.port);
console.log(util.inspect(config));
- storage.addUser('jimmy@'+config.host, '12345678', function() {
- console.log('created user jimmy@surf.unhosted.org with password 12345678');
- });
+ storage.addUser('jimmy@'+config.host, '12345678');
}

0 comments on commit 36580d9

Please sign in to comment.