Class: Opener::Authenticator::User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/opener/authenticator/user.rb

Instance Method Summary collapse

Instance Method Details

#encrypt_tokenObject



12
13
14
# File 'lib/opener/authenticator/user.rb', line 12

def encrypt_token
  self.token = Digest::SHA1.hexdigest(token)
end