diff --git a/modules/user.module b/modules/user.module index 474c8e6debb..b6791ceab0e 100644 --- a/modules/user.module +++ b/modules/user.module @@ -372,7 +372,7 @@ roles: idea, and logs in with a username of joe@remote.delphiforums.com and his usual Delphi password. Drupal then communicates with remote.delphiforums.com (usually using XML-RPC, HTTP POST, or SOAP) behind - the scenes and asks "is the password for username=joe? If Delphi replies + the scenes and asks "is this password for username=joe? If Delphi replies yes, then Drupal will create a new local account for joe and log joe into it. Joe may keep on logging into your Drupal instance in the same manner, and he will be logged into the same joe@remote.delphiforums.com account.

@@ -383,8 +383,8 @@ roles: joe@remote.delphiforums.com (because Delphi says so), he looks up Joe's UID and logs Joe into that account.

Drupal is setup so that it is very easy to add support for any external authentication - source. See the Drupal Handbook for information - on authpring authentication modules. You currently have the following authentication modules installed ...

+ source. See the Drupal Handbook for information + on authoring authentication modules. You currently have the following authentication modules installed ...

$name@$server"); + } } /* @@ -635,8 +637,15 @@ function user_login($edit = array()) { drupal_goto($url); } else { - watchdog("user", "failed to login for '". $name ."': invalid password"); - $error = t("Authentication failed."); + if (!$error) { + $error = t("Authentication failed."); + } + if ($server) { + watchdog("user", "failed login for '$name@$server': $error"); + } + else { + watchdog("user", "failed login for '$name': $error"); + } } } diff --git a/modules/user/user.module b/modules/user/user.module index 474c8e6debb..b6791ceab0e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -372,7 +372,7 @@ roles: idea, and logs in with a username of joe@remote.delphiforums.com and his usual Delphi password. Drupal then communicates with remote.delphiforums.com (usually using XML-RPC, HTTP POST, or SOAP) behind - the scenes and asks "is the password for username=joe? If Delphi replies + the scenes and asks "is this password for username=joe? If Delphi replies yes, then Drupal will create a new local account for joe and log joe into it. Joe may keep on logging into your Drupal instance in the same manner, and he will be logged into the same joe@remote.delphiforums.com account.

@@ -383,8 +383,8 @@ roles: joe@remote.delphiforums.com (because Delphi says so), he looks up Joe's UID and logs Joe into that account.

Drupal is setup so that it is very easy to add support for any external authentication - source. See the Drupal Handbook for information - on authpring authentication modules. You currently have the following authentication modules installed ...

+ source. See the Drupal Handbook for information + on authoring authentication modules. You currently have the following authentication modules installed ...

$name@$server"); + } } /* @@ -635,8 +637,15 @@ function user_login($edit = array()) { drupal_goto($url); } else { - watchdog("user", "failed to login for '". $name ."': invalid password"); - $error = t("Authentication failed."); + if (!$error) { + $error = t("Authentication failed."); + } + if ($server) { + watchdog("user", "failed login for '$name@$server': $error"); + } + else { + watchdog("user", "failed login for '$name': $error"); + } } }