Commit 1f8ef4e8 authored by pjcdawkins's avatar pjcdawkins

Fix email validation

parent 50bf5da4
......@@ -814,7 +814,7 @@ function openid_connect_complete_authorization($client, $tokens, &$destination)
}
else {
// Check whether the e-mail address is valid.
if (!filter_var($userinfo['mail'], FILTER_VALIDATE_EMAIL)) {
if (!filter_var($userinfo['email'], FILTER_VALIDATE_EMAIL)) {
drupal_set_message(t('The e-mail address %mail is not valid.', array('%mail' => $userinfo['email'])), 'error');
return FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment