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.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
- mesteele101 responded to »How to install Zikula for MSSQL ??? - Part II« 19. May
- mesteele101 created topic »File packaging« 16. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Using the pn_users database
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Aug 11, 2004
- Posts: 3
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 -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Aug 09, 2003
- Posts: 19
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. -
- Rank: Helper
- Registered: Apr 08, 2002
- Last visit: Oct 21, 2009
- Posts: 614
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 -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Aug 09, 2003
- Posts: 19
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.
- Moderated by:
- Support
