"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
semua
 
 
Posts: 162
Joined: Fri Jan 20, 2017 2:28 am

"Login" control error page

Post by semua » Fri Aug 03, 2018 10:58 pm

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: 14502
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: "Login" control error page

Post by Pablo » Sat Aug 04, 2018 6:32 am

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?

semua
 
 
Posts: 162
Joined: Fri Jan 20, 2017 2:28 am

Re: "Login" control error page

Post by semua » Mon Aug 06, 2018 12:22 pm

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: 14502
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: "Login" control error page

Post by Pablo » Mon Aug 06, 2018 12:54 pm

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?

semua
 
 
Posts: 162
Joined: Fri Jan 20, 2017 2:28 am

Re: "Login" control error page

Post by semua » Mon Aug 06, 2018 1:45 pm

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: 14502
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: "Login" control error page

Post by Pablo » Mon Aug 06, 2018 2:08 pm

And where can I see the server log (use HostGator)?
You will need to ask your webhost about this.

semua
 
 
Posts: 162
Joined: Fri Jan 20, 2017 2:28 am

Re: "Login" control error page

Post by semua » Fri Aug 24, 2018 4:39 pm

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: 14502
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: "Login" control error page

Post by Pablo » Fri Aug 24, 2018 6:51 pm

It is safer to use md5.

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

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests