Trim white space from entered passwords. New users who cut-and-paste from their introductory email message often end up with the preceding blank and/or trailing newline. See http://drupal.org/node/11791 --- user.module Fri Mar 4 04:00:01 2005 +++ user.module Sat Mar 5 14:55:09 2005 @@ -791,7 +793,7 @@ function user_login($edit = array(), $ms else if ($edit['name'] && $edit['pass']) { if (!$user->uid) { - $user = user_authenticate($edit['name'], $edit['pass']); + $user = user_authenticate($edit['name'], trim($edit['pass'])); } if ($user->uid) { @@ -1104,6 +1106,8 @@ function user_edit_validate($uid, &$edit // If required, check that proposed passwords match. If so, add the new password to $edit. if ($edit['pass1']) { + $edit['pass1'] = trim($edit['pass1']); + $edit['pass2'] = trim($edit['pass2']); if ($edit['pass1'] == $edit['pass2']) { $edit['pass'] = $edit['pass1']; }