lib/authlogic/acts_as_authentic/password.rb in Empact-authlogic-3.0.3 vs lib/authlogic/acts_as_authentic/password.rb in Empact-authlogic-3.1.0
- old
+ new
@@ -56,11 +56,11 @@
rw_config(:ignore_blank_passwords, value, true)
end
alias_method :ignore_blank_passwords=, :ignore_blank_passwords
# When calling valid_password?("some pass") do you want to check that password against what's in that object or whats in
- # the datbase. Take this example:
+ # the database. Take this example:
#
# u = User.first
# u.password = "new pass"
# u.valid_password?("old pass")
#
@@ -241,11 +241,11 @@
@password_changed = true
after_password_set
end
# Accepts a raw password to determine if it is the correct password or not. Notice the second argument. That defaults to the value of
- # check_passwords_against_database. See that method for mor information, but basically it just tells Authlogic to check the password
+ # check_passwords_against_database. See that method for more information, but basically it just tells Authlogic to check the password
# against the value in the database or the value in the object.
def valid_password?(attempted_password, check_against_database = check_passwords_against_database?)
crypted = check_against_database && send("#{crypted_password_field}_changed?") ? send("#{crypted_password_field}_was") : send(crypted_password_field)
return false if attempted_password.blank? || crypted.blank?
before_password_verification
@@ -350,6 +350,6 @@
end
end
end
end
end
-end
\ No newline at end of file
+end