{"action":"closed","issue":{"url":"https://api.github.com/repos/amnah/yii2-user/issues/61","labels_url":"https://api.github.com/repos/amnah/yii2-user/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/amnah/yii2-user/issues/61/comments","events_url":"https://api.github.com/repos/amnah/yii2-user/issues/61/events","html_url":"https://github.com/amnah/yii2-user/issues/61","id":55310224,"number":61,"title":"Error When Already registered user login with google plus ","user":{"login":"aneesv","id":849175,"avatar_url":"https://avatars.githubusercontent.com/u/849175?v=3","gravatar_id":"","url":"https://api.github.com/users/aneesv","html_url":"https://github.com/aneesv","followers_url":"https://api.github.com/users/aneesv/followers","following_url":"https://api.github.com/users/aneesv/following{/other_user}","gists_url":"https://api.github.com/users/aneesv/gists{/gist_id}","starred_url":"https://api.github.com/users/aneesv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aneesv/subscriptions","organizations_url":"https://api.github.com/users/aneesv/orgs","repos_url":"https://api.github.com/users/aneesv/repos","events_url":"https://api.github.com/users/aneesv/events{/privacy}","received_events_url":"https://api.github.com/users/aneesv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-23T17:44:40Z","updated_at":"2015-01-24T14:33:20Z","closed_at":"2015-01-24T14:33:20Z","body":"There is error when Error When Already registered user (Normal register) tries to login with google+\r\n\r\nI found where is error in AuthController.php function attemptLogin  line number 137\r\n     \r\n          // attempt to find user by email\r\n        if (!empty($attributes[\"email\"])) {\r\n\r\n            // check if any user has `new_email` set and clear it\r\n            $email = trim($attributes[\"email\"]);\r\n            $this->clearNewEmail($email);\r\n\r\n            // find user and create user provider for match\r\n            $user = $user::findOne([\"email\" => $email]);\r\n\r\n\r\nIn case of google email will be inside an array ($attributes[\"emails\"][0][\"value\"]) , please fix this \r\n"}}