image upload and changing images will clean up later andrew stayla

This commit is contained in:
Baris Soner Usakli
2013-05-11 21:55:14 -04:00
parent fdc866c840
commit 0aeeac9d61
8 changed files with 1515 additions and 33 deletions

View File

@@ -252,6 +252,8 @@ var config = require('../config.js'),
User.hashPassword(password, function(hash) {
var gravatar = User.createGravatarURLFromEmail(email);
RDB.hmset('user:'+uid, {
'username' : username,
'fullname': '',
@@ -261,7 +263,9 @@ var config = require('../config.js'),
'email' : email,
'joindate' : new Date().getTime(),
'password' : hash,
'picture' : User.createGravatarURLFromEmail(email),
'picture': gravatar,
'gravatarpicture' : gravatar,
'uploadedpicture': '',
'reputation': 0,
'postcount': 0
});