PHP best practices for user authentication and password security

后端 未结 8 2360
离开以前
离开以前 2020-11-30 19:10

What are the best current libraries/methods to authenticate users without the use of a CMS or heavy framework?

Responses should include suggestions for anything you

相关标签:
8条回答
  • 2020-11-30 19:34

    I use OpenID .

    But like stackoverflow I use the Google project openid-selector to do the heavy lifting.
    Demo Page here.

    The obvious advantages (of OpenID) are.

    • You don't need to be a security expert.
    • Users trust the big sites with their info.
    • You can request things like (nickname etc) but user has to opt in.
    • You don't need to worry about:
      • registration processes
      • lost/forgotten password
    0 讨论(0)
  • 2020-11-30 19:35

    OpenID is a method to authenticate users based on their existing accounts on common web services such as Yahoo, Google and Flickr.

    Logins to your site are based on a successful login to the remote site.

    You do not need to store sensitive user information or use SSL to secure user logins.

    A current PHP version of the library can be found here.

    0 讨论(0)
提交回复
热议问题