Fork me on GitHub

Watch

GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Forum Activity

Forum feed

» Visit forum | » View latest posts

Using the pn_users database  Bottom

  • Hi!

    I'm working on a little project that will not be integrated into PostNuke (at first). I'm trying to use the pn_users database so that only registered users can login to this new project, but how do I compare passwords? I tried searching for the login routine but couldn't find it.

    Can someone help?

    Jesse.
  • I'm pretty sure that the function is just a standard hash function of the users password. Hashes are "one way" math computations, so you would need the text of the password to generate the appropriate password hash. You cannot take the hash and get the password back. So, you would have to get the text password, hash it, and see if the values are the same that is stored in the users record.

    hope that helps.
    will
  • Okay, I understand that.

    I'm learning PHP so I'm not too familiar with the functions yet. Could you point me in the right direction: what functions to use, for example.

    Thanks.

    Jesse.
  • You can integrate the PN environment with postnuke_frame which gives you full access to the PN API. So you can use the user functions.

    Jörg
  • Can someone please spell this out?

    I found a function called mhash ( int , str ).

    The str should be the password, but I dunno what to use for int.

    Is this how the post nuke's passwords are encrypted?

    Thanks.

    Jesse.
  • Please ... I'd really like to have this done soon ... and I need the solution.

    Thanks to anyone, in advance.

    Jesse.

This list is based on users active over the last 60 minutes.