登录系统就像stackoverflow一样,用php编写 [英] Login system just like stackoverflow's, written in php

查看:92
本文介绍了登录系统就像stackoverflow一样,用php编写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是否有一种简单的方法来实现使用php的stackoverflow使用的登录系统?

The question Is there a simple way to implement the login system that stackoverflow uses using php?

很长时间以来,我已经开发了网站,并使用典型的Web表单用户名/密码和mysql db来登录系统.

For a long time I have developed websites, and have used a typical web form username/password with a mysql db for login systems.

我想拥有它,以便用户可以使用google,yahoo,facebook等登录系统,而不必记住一些长的openid网址(他们应该只单击google并能够使用其用户名登录/password).

I would like to have it so users can log into the system using google, yahoo, facebook, etc, and without them having to remember some long openid url (they should just click google and be able to log in using their username/password there).

我不希望使用服务提供商(例如RPX)来实现此目的.

I would prefer not to use a service provider (such as RPX) to implement this.

推荐答案

如果您想自己实施,请 PHP OpenID库,但这可能远远超出了您的需求.

If you want to implement it yourself, here is a great walkthrough. There's also the PHP OpenID Library, but that's probably a lot more than you need.

此处是SO在其登录时使用的客户端OpenID选择器屏幕.

Here is the client-side OpenID selector that SO uses on its login screen.

据我所知,Stack Overflow不再使用我链接到的链接,但仍然可以使用.

Stack Overflow no longer uses the one that I linked to, but it still works, as far as I'm aware.

这篇关于登录系统就像stackoverflow一样,用php编写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆