From 0b19df68bdaba9c9d11da50d562007bf5969125f Mon Sep 17 00:00:00 2001 From: webchick Date: Fri, 30 Sep 2011 15:15:54 -0700 Subject: Issue #1205138 by pwolanin, Dave Reid: Do not blow away non-MD5 password hashes in user_update_7000(). --- .../drupal-6.user-password-token.database.php | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'modules/simpletest/tests/upgrade/drupal-6.user-password-token.database.php') 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(); -- cgit v1.2.3