Improve compatibility between 'user' and 'password policy tab' modules
This commit is contained in:
parent
56910ad47f
commit
7ac2bb7013
3 changed files with 15 additions and 3 deletions
|
@ -42,7 +42,7 @@ function user_pass() {
|
|||
|
||||
function user_pass_validate($form, &$form_state) {
|
||||
$name = trim($form_state['values']['name']);
|
||||
|
||||
|
||||
|
||||
// Try to load by email.
|
||||
$account = user_load(array('mail' => $name, 'status' => 1));
|
||||
|
|
Reference in a new issue