"Login" control error page
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html
TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html
TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
"Login" control error page
Hello, I added a "Login" control and entered the MySQL table data. I registered a user in the database and everything ok, however when I log in the page is always redirected to "Error Page". I have already tried to change the "usarname" and "password" in the database but not later. What could be happening?
Re: "Login" control error page
Usually this behavior is related to problems with PHP sessions on the server side.
Are you sure the user is in the database?
Are there any error in the server PHP log?
Are you sure the user is in the database?
Are there any error in the server PHP log?
Re: "Login" control error page
Hello
I can not find any mistakes. And the password is correct. Follow the link https://bit.ly/2OOwOeb. Test Login: 1, Test Password: 1. Please try.

I can not find any mistakes. And the password is correct. Follow the link https://bit.ly/2OOwOeb. Test Login: 1, Test Password: 1. Please try.

Re: "Login" control error page
Did you try with a normal username like user1, password1?
Usually this behavior is related to problems with PHP sessions on the server side.
Are there any errors in the server PHP log?
Usually this behavior is related to problems with PHP sessions on the server side.
Are there any errors in the server PHP log?
Re: "Login" control error page
I have tried to change the user and the password, I have tried to delete and add new users and it does not work, it always returns the same problem. And where can I see the server log (use HostGator)?
Re: "Login" control error page
You will need to ask your webhost about this.And where can I see the server log (use HostGator)?
Re: "Login" control error page
I figured out what the problem is. Php uses md5 to load the password:
only that my password in the database is not encrypted, then the database password is compared with the password of the textbox, but as one is encrypted and another does not result in false.
I removed the md5 and it works perfectly:
But the question now is: is it safe to leave without the md5? And if it is not, how do I create a password using md5 to save to the database?
Code: Select all
$crypt_pass = md5($_POST['password']);
I removed the md5 and it works perfectly:
Code: Select all
$crypt_pass = $_POST['password'];