|
|
@ -964,9 +964,7 @@ var bcrypt = require('bcryptjs'),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
User.logIP = function(uid, ip) {
|
|
|
|
User.logIP = function(uid, ip) {
|
|
|
|
db.sortedSetAdd('uid:' + uid + ':ip', +new Date(), ip || 'Unknown', function(err) {
|
|
|
|
db.sortedSetAdd('uid:' + uid + ':ip', +new Date(), ip || 'Unknown');
|
|
|
|
console.log(ip, 'for uid', uid);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
User.email = {
|
|
|
|
User.email = {
|
|
|
|