mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-06 03:01:21 -04:00
Required fields on token_authenticatable
This commit is contained in:
@@ -27,6 +27,14 @@ module Devise
|
||||
module TokenAuthenticatable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
module ModuleMethods
|
||||
extend self
|
||||
|
||||
def required_fields
|
||||
[:authentication_token]
|
||||
end
|
||||
end
|
||||
|
||||
# Generate new authentication token (a.k.a. "single access token").
|
||||
def reset_authentication_token
|
||||
self.authentication_token = self.class.authentication_token
|
||||
|
||||
Reference in New Issue
Block a user