Reputation: 11
I've discovered recently LightOpenID wich i'm going to use as a login system for all my next websites.
As i'm fetching some infos when users register/login with LighOpenID, I'd like to know if it's technically ok to use user's email as unique id in my USERS table or if it's a bad idea ?
Thanks guys ,
FX
Upvotes: 1
Views: 296
Reputation: 146558
Thinks to consider:
My advice is that, if you want to use OpenID, you should do it right. Read the OpenID URL from $openid->identity()
after successful validation and use that to identify the user.
Additionally:
Upvotes: 1
Reputation: 136635
It depends on your service. Normally, every email-adress is only assigned to one person. If multiple accounts per user are not wanted, it's ok. Some families have a family-email-adress. But I guess they would also use the same account.
Why don't you take the OpenID as the unique ID? OpenIDs are unique and you get the OpenID before you get the Email-Adress, if you use only OpenID for logging in.
Upvotes: 0