mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Remove duplicated method.
This commit is contained in:
parent
4b7a9204b8
commit
96c8238b02
2 changed files with 1 additions and 6 deletions
|
@ -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.
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue