oops, omitted a couple important features/vulnerabilities

This commit is contained in:
cktricky
2014-09-11 11:13:15 -04:00
parent a50cad0cf3
commit 7e38ac845f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ class User < ActiveRecord::Base
return auth
end
#=begin
=begin
# More secure version, still lacking a decent hashing routine, this is for timing attack prevention
def self.authenticate(email, password)
user = find_by_email(email) || User.new(:password => "")
@@ -72,7 +72,7 @@ class User < ActiveRecord::Base
raise "Incorrect username or password"
end
end
#=end
=end
def assign_user_id
unless @skip_user_id_assign.present? || self.user_id.present?