/[drupal]/contributions/modules/logintoboggan/logintoboggan.module
ViewVC logotype

Diff of /contributions/modules/logintoboggan/logintoboggan.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.83.2.51, Sun Oct 11 18:55:56 2009 UTC revision 1.83.2.52, Wed Oct 21 13:28:17 2009 UTC
# Line 1  Line 1 
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
# Line 580  function _logintoboggan_toggleboggan_js( Line 580  function _logintoboggan_toggleboggan_js(
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');
# Line 795  function logintoboggan_validate_email($u Line 795  function logintoboggan_validate_email($u
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.

Legend:
Removed from v.1.83.2.51  
changed lines
  Added in v.1.83.2.52

  ViewVC Help
Powered by ViewVC 1.1.2