简体   繁体   English

实施FB登录网站; 允许用户更改密码?

[英]implementing FB login to website; allow user to change password?

I've implemented FB connect on my website, and all works fine. 我已经在我的网站上实现了FB connect,并且一切正常。

The procedure is pretty standard: 程序很标准:

user clicks FB button on my website
I capture the user's FB  email, name
I create a new user in my database with the users email and name

On each user's profile page, I allow the user to change their password. 在每个用户的个人资料页面上,我允许用户更改其密码。 It occured to me that if a user logs in with FB (or Google for that matter), I should not allow them to change their password, since 1) I can't affect their FB password, and 2) they really have no password on my site. 在我看来,如果用户使用FB(或Google)登录,我不应该允许他们更改密码,因为1)我不能影响其FB密码,以及2)他们实际上没有密码在我的网站上。 Does this make sense or am I missing something? 这有意义还是我错过了什么? Is it good enough to just grey out the password form on their profile or is there a better way to handle this? 仅将他们的个人资料上的密码表单显示为灰色就足够了吗,还是有更好的方法来处理此问题?

Thanks - 谢谢 -

I use this procedure. 我用这个程序。

User clicks on FB button on my website
I capture the user's FB email and name
I create a new user in my database with the users email, name and random password
Once user is logged in he can change the password
Now the user have two options how to log in on my website
 - using FB authorization
 - using email and password
  It's up to the user which one he use.

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM