function email_confirm_user_email_rehash in Email Change Confirmation 7
Same name and namespace in other branches
- 5 email_confirm.module \email_confirm_user_email_rehash()
- 6 email_confirm.module \email_confirm_user_email_rehash()
Generate a hash of URL paramaters and pending changed email address.
2 calls to email_confirm_user_email_rehash()
- email_confirm_confirmation_email_url_path in ./
email_confirm.module - Generate the path part of a URL to confirm an email address change request.
- email_confirm_user_change_mail in ./
email_confirm.module - Menu callback; process one time email change confirm.
File
- ./
email_confirm.module, line 500 - The Email Change Confirmation module.
Code
function email_confirm_user_email_rehash($mail, $timestamp, $uid) {
// @see user_pass_rehash().
// The email_confirm_hash_salt supports automated testing.
// Not a one-time login link, so use 0 instead of last login.
return drupal_hmac_base64($timestamp . 0 . $uid, variable_get('email_confirm_hash_salt', drupal_get_hash_salt()) . $mail);
}