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

时间:2014-01-24 00:58:27

标签: php facebook web

我在我的网站上实现了FB连接,一切正常。

程序很标准:

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

在每个用户的个人资料页面上,我允许用户更改其密码。我发现,如果用户使用FB(或谷歌)登录,我不应该让他们更改密码,因为1)我不能影响他们的FB密码,2)他们真的没有密码在我的网站上。这有意义还是我错过了什么?只是在他们的个人资料上显示密码表单是否足够好,还是有更好的方法来处理它?<​​/ p>

谢谢 -

1 个答案:

答案 0 :(得分:1)

我使用这个程序。

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.

希望这有帮助。

相关问题