* dont use email blacklist ban

This commit is contained in:
Seth Call 2016-03-01 14:24:31 -06:00
parent 54cbfc69f0
commit f6652fa180
1 changed files with 5 additions and 4 deletions

View File

@ -163,10 +163,11 @@ module SessionsHelper
return
end
if EmailBlacklist.banned(current_user)
Stats.write('web.blacklist.user', {value: 1, user_id: current_user.id})
render :json => { :message => "User blacklisted via email"}, :status => 403
end
# not yet; we can track the thief by not outright banning
#if EmailBlacklist.banned(current_user)
# Stats.write('web.blacklist.user', {value: 1, user_id: current_user.id})
# render :json => { :message => "User blacklisted via email"}, :status => 403
#end
if UserBlacklist.banned(current_user)
Stats.write('web.blacklist.user', {value: 1, user_id: current_user.id})