11) jquery simple form validation tutorial login screen - Secure PHP Login System

preview_player
Показать описание
To see the whole video series :

-~-~~-~~~-~~-~-
Please watch: "Learn how to create secure Rest API calls - Code With Mark"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Hey Mark,
I am only able to get the project working to a certain point as well.
Let me explain.

Using your downloaded source and only changing the code when the signup page is submitted it goes to the confirmation section, but it parses an object error.


Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.

Error 404

localhost
Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6


only thing changed was the config.php file following lines:

$db = new SimpleDBClass("localhost", "Admin", "password", "dllogin");//these are the files to connect to my local host.


Something that was confusing to me from the original videos was this part of db_class.php

//--->Connect to database - Start
public function __construct($host="localhost", $user="root", $pass="", $database="")

??? was this section supposed to be also filled out with our DB connect information as well or does that carry over into the config.php file with "new SimpleDBClass"?

Anyway, when the "Confirm Link" link is clicked in the Confirm section you get the error. I am not sure where it is coming from as I used your source code as a double check and it is doing the same thing =/

I am running MySQL 5.6 with XXAMP running PHP/5.5.6 with Apache/2.4.7 phpMyAdmin 4.0.9 running, I uploaded the query to create the table but am using a different DB name 'dllogin'.
The table inserts the query fine with "user_status" set to "pending", however, like I said when that link is clicked, it does not verify the account and I get that object error I posted at the top of this comment.

Let me know if you need anything else from me to help trouble shoot this issue. Thank you very much fro your time and I look forward to hearing from you!

alwaysawakening
Автор

His code works up to this point. After that code wont work. all the problems are in the signup, login, forget js files and awesome functions. Gives not found errors, not defined errors. Don't waste anymore of your time with this tutorial

jam