new translation strings for pages, proper unicode handling in parseFragment

This commit is contained in:
Julian Lam
2014-01-27 12:19:25 -05:00
parent e69f5fff3b
commit fac55160fa
3 changed files with 41 additions and 5 deletions

View File

@@ -733,6 +733,17 @@ var bcrypt = require('bcryptjs'),
});
};
User.getUsernameByUserslug = function(slug, callback) {
async.waterfall([
function(next) {
User.getUidByUserslug(slug, next);
},
function(uid, next) {
User.getUserField(uid, 'username', next);
}
], callback);
};
User.getUidByEmail = function(email, callback) {
db.getObjectField('email:uid', email, function(err, data) {
if (err) {