This topic is locked
[SOLVED]

 Invalid Login

5/9/2020 4:36:17 PM
PHPRunner General questions
W
wypman author

I am having issues with creating a database user login. Everything was working fine until I created a new project.
If I create a new project and in Security create a Database Login, if I try and use Password hashing (BRCRYPT or MD5) when I built the project, I can register a user, but I am unable to login with the credentials created. If, prior to the build, I use the 'Add user' option in the Security menu I can login with the newly created credentials!
I have reinstalled PHPRunner but it still doesn't work. I have older projects that work fine, it is just when I create new ones.
I am using Windows 10 Home

PHPRunner 10.4(Build 35002 x64)

XAMPP Control Panel 3.2.4 -

Microsoft Edge 44.18362.449.0

Google Chrome [color=#5F6368]
I run both PHPRunner and XAMPP as Administrator

Admin 5/10/2020

I would guess that something is missing in PHP settings and passwords do not get encrypted when users register. You can start by checking the actual contents of the password field in the database after new user registers.

W
wypman author 5/10/2020



I would guess that something is missing in PHP settings and passwords do not get encrypted when users register. You can start by checking the actual contents of the password field in the database after new user registers.


With this in mind I registered from the front end a new user: I checked the password field and the password appears to be encrypted:
$2y$10$0lgsAtWWtcQqPHpDWsQn.OVJ2buhGkAWlU/QuvRJU/E6ZqcaSAOsa
I then attempted to login with the details and login failed. I deleted the user.
I then ran PHPRunner and added a user from the Security menu, using the exact same credentials. I checked the password field, it also looked to be encrypted.
$2y$10$4XKA/YwnUoIxrFALxX1quu9tGuqZnQmFrrplip9R8NJ1QFeUKQjUC
I was able to log into the front end with these credentials. Is there anything else I can test? Would I expect to see the hashes being different if I was using exactly the same credentials?

W
wypman author 5/10/2020

I have also checked that the JWT secret key matches in the Session keys of PHPRunner and the appsettings.php file ..

Admin 5/10/2020

I recommend posting your project to Demo Account and contacting support directly.

W
wypman author 5/10/2020

I installed XAMPP Version 7.3.17 - created a new project in PHPRunner 10.4 - still wouldn't work/
So I created a new project in PHPRunner 10.2 and it worked!!!

Admin 5/11/2020

How does this help us to help you?

W
wypman author 5/11/2020

I received the below response from a support ticket.





Sergey, everything is now working fine! Thank you for sorting this out so quickly.