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

Diff of /contributions/modules/phpass/phpass.module

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

revision 1.1.2.5, Mon Dec 24 01:38:57 2007 UTC revision 1.1.2.6, Wed Feb 13 16:43:53 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: phpass.module,v 1.1.2.4 2007/12/24 00:57:22 douggreen Exp $  // $Id: phpass.module,v 1.1.2.5 2007/12/24 01:38:57 douggreen Exp $
3    
4  /**  /**
5   * phpass Module   * phpass Module
# Line 196  function _phpass_save($uid, $pass) { Line 196  function _phpass_save($uid, $pass) {
196    else {    else {
197      // store the secure phpass hash      // store the secure phpass hash
198      db_query("INSERT INTO {user_phpass} (hash, uid) VALUES ('%s', %d)", $phpass_hash, $uid);      db_query("INSERT INTO {user_phpass} (hash, uid) VALUES ('%s', %d)", $phpass_hash, $uid);
   
     // lose the insecure md5 hash  
     db_query("UPDATE {users} SET pass = 'phpass' WHERE uid = %d", $uid);  
199    }    }
200    
201      // lose the insecure md5 hash
202      db_query("UPDATE {users} SET pass = 'phpass' WHERE uid = %d", $uid);
203  }  }
204    
205  function _phpass_is_passwordhash_php_missing() {  function _phpass_is_passwordhash_php_missing() {

Legend:
Removed from v.1.1.2.5  
changed lines
  Added in v.1.1.2.6

  ViewVC Help
Powered by ViewVC 1.1.2