|
|
@ -230,7 +230,10 @@ var utils = require('./../public/src/utils.js'),
|
|
|
|
if(data[key] !== undefined) {
|
|
|
|
if(data[key] !== undefined) {
|
|
|
|
if(key === 'email') {
|
|
|
|
if(key === 'email') {
|
|
|
|
User.setUserField(uid, 'gravatarpicture', User.createGravatarURLFromEmail(data[key]));
|
|
|
|
User.setUserField(uid, 'gravatarpicture', User.createGravatarURLFromEmail(data[key]));
|
|
|
|
|
|
|
|
user.getUserField(uid, 'email', function(email) {
|
|
|
|
|
|
|
|
RDB.del('email:' + email + ':uid');
|
|
|
|
RDB.set('email:' + data['email'] + ':uid', uid);
|
|
|
|
RDB.set('email:' + data['email'] + ':uid', uid);
|
|
|
|
|
|
|
|
});
|
|
|
|
} else if(key === 'signature') {
|
|
|
|
} else if(key === 'signature') {
|
|
|
|
data[key] = utils.strip_tags(data[key]);
|
|
|
|
data[key] = utils.strip_tags(data[key]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|