finished the write-up for crytpo vuln, close issue #5
This commit is contained in:
@@ -25,7 +25,6 @@ class User < ActiveRecord::Base
|
||||
def self.authenticate(email, password)
|
||||
auth = nil
|
||||
user = find_by_email(email)
|
||||
# I heard something about hashing, dunno, why bother really. Nobody will get access to my stuff!
|
||||
if user
|
||||
if user.password == Digest::MD5.hexdigest(password)
|
||||
auth = user
|
||||
|
||||
Reference in New Issue
Block a user