I tried referring to this question, but I am having a small problem. (http://http://vanillaforums.org/discussion/comment/161762/#Comment_161762) I'm fairly new to PHP, but not to java.
I have a page added to the website called mobile.php, and I'm trying to hash the password the user enters on the mobile and check it with the database, however, the hashing is much different than a simple md5($pw) or sha1($pw).
i tried using these lines of code that the link above has offered $Vanilla_PasswordHash = new PasswordHash();
$a = $Vanilla_PasswordHash->HashPassword('123456');
echo $Vanilla_PasswordHash->CheckPassword('123456', $a, 'Vanilla');
echo $a;
and using the include -- include PATH_LIBRARY . '/vendors/phpass/PasswordHash.php'; which was already in the page - passwordhash.php
but the web page crashes... am I doing something wrong?
Comments
When you post code highlight your code with your mouse and click the C in the buttonbar, it much more readable.
To debug your problem add this to the conf/config.php
$Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php'; $Configuration['Garden']['Debug'] = TRUE;
then post the info it gives you.
After you resolve it remove the above config lines from your config.php
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •so, i added the code you asked and i connected to the site /config.php and the errors it show have no relevance to the page as of right now the page mobile.php is just a separately standing page on the site, it has no influence on whether or not the entire site crashes (not sure if this matters)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I can't tell, you didn't post your errors.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •but again, if i remove the code from the mobile page so it works again, the errors are the exact same
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •page is still down, and the errors are the same as the other post
edit: because i include it, i should be able to use those functions right?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •don't know its too hard to read your error results.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •ok, thanks a lot for trying
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Wait, Wait, Wait! @bling1009 the code that you posted in this comment: http://vanillaforums.org/discussion/comment/165137/#Comment_165137 didn't show the actual error that you received. You actually posted the text that's less interesting than the actual error. That is what @peregrine means and he's correct that he said that it's too hard to read your error message
Can you please post just the error message that you receive? Thanks.
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •