Remove duplicated method.

This commit is contained in:
José Valim 2010-03-28 07:24:56 +02:00
parent 4b7a9204b8
commit 96c8238b02
2 changed files with 1 additions and 6 deletions

View File

@ -13,6 +13,7 @@
* E-mails now use any template available in the filesystem. Easy to create multipart e-mails.
* E-mails asks headers_for in the model to set the proper headers.
* Allow to specify haml in devise_views.
* Compatibility with Datamapper and Mongoid.
* bug fix
* Do not use lock! on lockable since it's part of ActiveRecord API.

View File

@ -50,12 +50,6 @@ module Devise
password_digest(incoming_password) == self.encrypted_password
end
# Verifies whether an +incoming_authentication_token+ (i.e. from single access URL)
# is the user authentication token.
def valid_authentication_token?(incoming_auth_token)
incoming_auth_token == self.authentication_token
end
# Checks if a resource is valid upon authentication.
def valid_for_authentication?(attributes)
valid_password?(attributes[:password])