diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-09-30 15:15:54 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-09-30 15:15:54 -0700 |
commit | 0b19df68bdaba9c9d11da50d562007bf5969125f (patch) | |
tree | 38e842a80cad782aff98fdf2f07d22855b647de1 /modules/simpletest/tests/upgrade/drupal-6.user-password-token.database.php | |
parent | aed4de70c7bcaddb63f4b7eedec73f9802a88791 (diff) | |
download | brdo-0b19df68bdaba9c9d11da50d562007bf5969125f.tar.gz brdo-0b19df68bdaba9c9d11da50d562007bf5969125f.tar.bz2 |
Issue #1205138 by pwolanin, Dave Reid: Do not blow away non-MD5 password hashes in user_update_7000().
Diffstat (limited to 'modules/simpletest/tests/upgrade/drupal-6.user-password-token.database.php')
-rw-r--r-- | modules/simpletest/tests/upgrade/drupal-6.user-password-token.database.php | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/modules/simpletest/tests/upgrade/drupal-6.user-password-token.database.php b/modules/simpletest/tests/upgrade/drupal-6.user-password-token.database.php index 367c70481..e91b6e456 100644 --- a/modules/simpletest/tests/upgrade/drupal-6.user-password-token.database.php +++ b/modules/simpletest/tests/upgrade/drupal-6.user-password-token.database.php @@ -8,3 +8,48 @@ db_insert('variable')->fields(array( 'value' => 's:97:"!password, !username, !site, !uri, !uri_brief, !mailto, !date, !login_uri, !edit_uri, !login_url.";', )) ->execute(); + +db_insert('users')->fields(array( + 'uid', + 'name', + 'pass', + 'mail', + 'mode', + 'sort', + 'threshold', + 'theme', + 'signature', + 'signature_format', + 'created', + 'access', + 'login', + 'status', + 'timezone', + 'language', + 'picture', + 'init', + 'data', +)) +->values(array( + 'uid' => 3, + 'name' => 'hashtester', + // This is not a valid D7 hash, but a truncated one. + 'pass' => '$S$DAK00p3Dkojkf4O/UizYxenguXnjv', + 'mail' => 'hashtester@example.com', + 'mode' => '0', + 'sort' => '0', + 'threshold' => '0', + 'theme' => '', + 'signature' => '', + 'signature_format' => '0', + 'created' => '1277671599', + 'access' => '1277671612', + 'login' => '1277671612', + 'status' => '1', + 'timezone' => '-21600', + 'language' => '', + 'picture' => '', + 'init' => 'hashtester@example.com', + 'data' => 'a:0:{}', +)) +->execute(); |