thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

Hybird auth signup for already exist users #159

Closed muet84 closed 10 years ago

muet84 commented 10 years ago

Hi,

I am using hybirdauth. Problem is if a user/email already exist id DB will try to use hybird auth to signup it allows and create new record and duplicate the email in database. where it should say "user already exits".

I am sorry if this already done in the script and am not able to find else please someone tell me where and how to accomplish this.

Thanks jawwad

thyseus commented 10 years ago

hey; afaik this actually is checked in the script somewhere, but i am quite sure that there would be a much better way to implement this.

i will take a look at the issue soon and answer to this issue.

thanks for reporting !

2013/11/14 muet84 notifications@github.com

Hi,

I am using hybirdauth. Problem is if a user/email already exist id DB will try to use hybird auth to signup it allows and create new record and duplicate the email in database. where it should say "user already exits".

I am sorry if this already done in the script and am not able to find else please someone tell me where and how to accomplish this.

Thanks jawwad

— Reply to this email directly or view it on GitHubhttps://github.com/thyseus/yii-user-management/issues/159 .

GIT/GP/GTW d- D++ s a- C++ UL++ P-- E--- R !tv e-- h* r-- y-

muet84 commented 10 years ago

Thanks for response.

I have added a check in the registerByHybridAuth() method in yumUser model. now first it will verify that user already exist with same email or not before register him.

Let me know if there is a better way to do the same. Thanks