You are here

function user_email_verification_hmac in User email verification 7

Generate HMAC.

Parameters

unknown $uid:

unknown $timestamp:

Return value

string

4 calls to user_email_verification_hmac()
user_email_verification_extended_url in ./user_email_verification.module
Generate the
user_email_verification_url in ./user_email_verification.module
Generate the
user_email_verification_verify in ./user_email_verification.admin.inc
Menu callback; process one time login link and redirects to the user page on success.
user_email_verification_verify_extended in ./user_email_verification.admin.inc
Menu callback; processes extended verification links. Enables and verifies accounts if user clicks the link within specified time period.

File

./user_email_verification.module, line 531
This module allows you to have e-mail verification and in meanwhile allowing the users to type their own passwords. If they do not verify their accounts in a certain time interval the user will be blocked.

Code

function user_email_verification_hmac($uid, $timestamp) {
  $string = drupal_get_hash_salt() . $uid . variable_get('user_email_verification_salt', 'salt');
  return drupal_hmac_base64($timestamp . $uid, $string);
}