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 more information, but
basically it just tells Authlogic to check the password against the value
in the database or the value in the object.

# File 'lib/authlogic/acts_as_authentic/password.rb', line 248defvalid_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)returnfalseifattempted_password.blank?||crypted.blank?before_password_verificationcrypto_providers.each_with_indexdo|encryptor,index|# The arguments_type of for the transitioning from restful_authentication
arguments_type=(act_like_restful_authentication?&&index==0)||(transition_from_restful_authentication?&&index>0&&encryptor==Authlogic::CryptoProviders::Sha1)?:restful_authentication:nilifencryptor.matches?(crypted,*encrypt_arguments(attempted_password,check_against_database,arguments_type))transition_password(attempted_password)iftransition_password?(index,encryptor,crypted,check_against_database)after_password_verificationreturntrueendendfalseend