You are here

function audit_log_hybridauth_hybridauth_user_blocked in Audit Log 7

Implements hook_hybridauth_user_blocked().

Write a watchdog log entry when a user fails to log in via HybridAuth.

File

modules/audit_log_hybridauth/audit_log_hybridauth.module, line 56
HybridAuth related hook implemenations for the Audit log module.

Code

function audit_log_hybridauth_hybridauth_user_blocked($account, $data) {
  audit_log($account, 'user', 'hybridauth-user-blocked', $account, NULL, REQUEST_TIME, array(
    'message' => format_string('Login rejected for @name.', array(
      '@name' => $account->name,
    )),
  ));
}