nineinchnick / yii2-usr

Yii framework module for user authentication, password reset, registration and profile updating. A port of yii-usr to Yii Framework 2.0.
http://demo2.niix.pl
MIT License
39 stars 8 forks source link

Undefined property: Hybrid_User_Profile::$emailVerifier (StrictMode) #20

Closed hamrak closed 10 years ago

hamrak commented 10 years ago

When I log in with my FB account (hybridauth) then I get this notice:

Notice – yii\base\ErrorException

Undefined property: Hybrid_User_Profile::$emailVerifier [in ../vendor/nineinchnick/yii2-usr/controllers/HybridauthController.php at line 152]

$email = $profile->emailVerifier !== null ? $profile->emailVerifier : $profile->email;

and fixed

$email = (isset($profile->emailVerifier) && $profile->emailVerifier !== null) ? $profile->emailVerifier : $profile->email;