This would be a simple usability improvement (and probably a simple patch).

Comments

webchick’s picture

Status: Active » Needs review
StatusFileSize
new706 bytes

And so it was!

dww’s picture

Status: Needs review » Closed (works as designed)

Uhh? We're already doing this. ;)

function _drupalorg_testing_create_admin_and_login() {
  // create the admin account
  // Shouldn't we be using user_save() here?
  db_query("INSERT INTO {users} (uid, name, pass, mail, created, status) VALUES(
1, 'a', '%s', 'a@a.a', %d, 1)", md5('a'), time());
  // Initialize the record in the {sequences} table.
  db_next_id('{users}_uid');
  user_authenticate('a', 'a');
  ...