I am stuck with simple login page, issue
POST xxxxxdmxConnect/api/login.php 500 (Internal Server Error)
I have followed guides and rechecked all, can’t find where is the problem
server side.
created connection to database, security login and provider.
I have managed to solve the issue, the reason was that i added security login before security provider,
therefor could not fill the provider field.
now i do get reply of 401 - Unauthorized…
I assume that the issue is with password hashing.
But i can’t find the reason.
I used the same password parameters for the field. ( generate sha256 + same salt value)
A 401 response from the login means that validation failed, so the username/password didn’t match. Did you use exactly the same hashing method to generate the password. 3rd party software can generate different hashes with same password and salt, if it was generated not with Server Connect then it is possible that the hash generates different.
@patrick you were right,
for some reason when i tried to generate on external services sha256 + same salt, some resources give different hash…
I don’t understand why, but it is as you said.
thx
There is no default rule on how to use the salt, some put it in front of the password, some at the end or have an other custom solution. We paste the salt to the end of the password and hash the string then.
An other difference can be the case, some services return the string in uppercase while others use lowercase. I believe that we use lowercase.
If you know how the other service did hash it, like pasting hash in front and using uppercase, then you can manage the same in Wappler like: