You are here

function mailhandler_user_load in Mailhandler 5

Same name and namespace in other branches
  1. 6 mailhandler.module \mailhandler_user_load()
  2. 7 mailhandler.module \mailhandler_user_load()

Retrieve user information from his email address.

1 call to mailhandler_user_load()
mailhandler_authenticate in ./mailhandler.module
Determine who is the author of the upcoming node.

File

./mailhandler.module, line 417

Code

function mailhandler_user_load($mail, $pass, $mailbox) {
  if ($mailbox['security'] == 1) {
    return user_load(array(
      'mail' => $mail,
      'pass' => $pass,
    ));
  }
  else {
    return user_load(array(
      'mail' => $mail,
    ));
  }
}