| 1 |
<?php |
<?php |
| 2 |
// $Id: logintoboggan.module,v 1.83.2.50 2009/10/11 18:04:26 thehunmonkgroup Exp $ |
// $Id: logintoboggan.module,v 1.83.2.51 2009/10/11 18:55:56 thehunmonkgroup Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 580 |
} |
} |
| 581 |
|
|
| 582 |
function logintoboggan_main_settings() { |
function logintoboggan_main_settings() { |
| 583 |
$version .= str_replace(array('$Re'.'vision:', '$Da'.'te:', '$'), array('', '', ''), '<p style="font-size:x-small">Login Toboggan version: <b>$Revision: 1.83.2.50 $</b>, $Date: 2009/10/11 18:04:26 $</p>'); |
$version .= str_replace(array('$Re'.'vision:', '$Da'.'te:', '$'), array('', '', ''), '<p style="font-size:x-small">Login Toboggan version: <b>$Revision: 1.83.2.51 $</b>, $Date: 2009/10/11 18:55:56 $</p>'); |
| 584 |
|
|
| 585 |
$_disabled = t('disabled'); |
$_disabled = t('disabled'); |
| 586 |
$_enabled = t('enabled'); |
$_enabled = t('enabled'); |
| 795 |
// - the hashed password is correct. |
// - the hashed password is correct. |
| 796 |
if (((variable_get('user_email_verification', TRUE) && empty($account->login)) || array_key_exists(logintoboggan_validating_id(), $account->roles)) && $hashed_pass == logintoboggan_eml_rehash($account->pass, $timestamp, $account->mail)) { |
if (((variable_get('user_email_verification', TRUE) && empty($account->login)) || array_key_exists(logintoboggan_validating_id(), $account->roles)) && $hashed_pass == logintoboggan_eml_rehash($account->pass, $timestamp, $account->mail)) { |
| 797 |
watchdog('user', t('E-mail validation URL used for %name with timestamp @timestamp.', array('%name' => $account->name, '@timestamp' => $timestamp))); |
watchdog('user', t('E-mail validation URL used for %name with timestamp @timestamp.', array('%name' => $account->name, '@timestamp' => $timestamp))); |
|
// Update the user table noting user has logged in. |
|
|
// And this also makes this hashed password a one-time-only login. |
|
|
db_query("UPDATE {users} SET login = '%d' WHERE uid = %d", time(), $account->uid); |
|
| 798 |
|
|
| 799 |
// Test here for a valid pre-auth -- if the pre-auth is set to the auth user, we |
// Test here for a valid pre-auth -- if the pre-auth is set to the auth user, we |
| 800 |
// handle things a bit differently. |
// handle things a bit differently. |