temporary until stopforumspam supports ipv6
v1.18.x
psychobunny 10 years ago
parent d1aaa9ca07
commit 48cb671916

@ -157,6 +157,9 @@ module.exports = function(User) {
return next(null, user);
}
// temporary: see http://www.stopforumspam.com/forum/viewtopic.php?id=6392
user.ip = user.ip.replace('::ffff:', '');
request('http://api.stopforumspam.org/api?ip=' + user.ip + '&email=' + user.email + '&username=' + user.username + '&f=json', function (err, response, body) {
if (err) {
return next(null, user);

Loading…
Cancel
Save