"Login" control error page

Issues related to the Login tools of WYSIWYG Web Builder.
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.
Post Reply
User avatar
semua
 
 
Posts: 41
Joined: Fri Jan 20, 2017 2:28 am

"Login" control error page

Post by semua »

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?
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: "Login" control error page

Post by Pablo »

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?
User avatar
semua
 
 
Posts: 41
Joined: Fri Jan 20, 2017 2:28 am

Re: "Login" control error page

Post by semua »

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.

Image
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: "Login" control error page

Post by Pablo »

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?
User avatar
semua
 
 
Posts: 41
Joined: Fri Jan 20, 2017 2:28 am

Re: "Login" control error page

Post by semua »

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)?
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: "Login" control error page

Post by Pablo »

And where can I see the server log (use HostGator)?
You will need to ask your webhost about this.
User avatar
semua
 
 
Posts: 41
Joined: Fri Jan 20, 2017 2:28 am

Re: "Login" control error page

Post by semua »

I figured out what the problem is. Php uses md5 to load the password:

Code: Select all

$crypt_pass = md5($_POST['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:

Code: Select all

$crypt_pass = $_POST['password'];
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?
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: "Login" control error page

Post by Pablo »

It is safer to use md5.

This may be useful:
https://passwordsgenerator.net/md5-hash-generator/
Post Reply