Improve compatibility between 'user' and 'password policy tab' modules

This commit is contained in:
Manuel Cillero 2017-08-18 00:06:44 +02:00
parent 56910ad47f
commit 7ac2bb7013
3 changed files with 15 additions and 3 deletions

View file

@ -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));