molten-trunk/molten5_withgrid/lib/authentication_system/contact_methods.rb
def generate_token
      logger.info("generating token for #{id} email: #{email} name: #{name}")
      token_before = "#{Time.now.to_i}" + email
      # MD5.md5(token_before).hexdigest
      OpenSSL::HMAC.hexdigest(OpenSSL::Digest::Digest.new(AppConstants::FILE_DOWNLOAD_DIGEST), 
                                                                AppConstants::FILE_DOWNLOAD_KEY, token_before)
    end
# Generates a new token but does not save it to the +token+ attribute.

Generates a new token but does not save it to the +token+ attribute.
Generates a new token but does not save it to the + token + attribute .
def generate_token
      logger.info("generating token for #{id} email: #{email} name: #{name}")
      token_before = "#{Time.now.to_i}" + email
      OpenSSL::HMAC.hexdigest(OpenSSL::Digest::Digest.new(AppConstants::FILE_DOWNLOAD_DIGEST), 
                                                                AppConstants::FILE_DOWNLOAD_KEY, token_before)
    end
def generate_token logger . info ( "generating token for #{id} email: #{email} name: #{name}" ) token_before = "#{Time.now.to_i}" + email OpenSSL :: HMAC . hexdigest ( OpenSSL :: Digest :: Digest . new ( AppConstants :: FILE_DOWNLOAD_DIGEST ) , AppConstants :: FILE_DOWNLOAD_KEY , token_before ) end
Generates a new token but does not save it to the +token+ attribute.
Generates a new token but does not save it to the + token + attribute .
# MD5.md5(token_before).hexdigest
