Unauthorized User Login

All of a sudden I am getting 401 - Unauthorized Login when any user attempts to log into the website. This condition only happens on my production server. Any ideas what I can check to fix this problem?

Hey!

Are all your files uploaded to the server?
Check with the publish button to compare your local/server files.

Thank you for replying.

Yes all the files have been published to the production server. Any other ideas?

I have done some screenshots of the pages:

Well, first of all there’s no need to have the security provider step on the login api.
I see the security1 under globals, only with that it’s ok.

Are you sure the password matches?
I see you use hashed passwords on the login, but the password was hashed when it was created?

Let’s say I create a user with no hash password and it’s stored like “pass123” it will no be valid if the login step checks “pass123.sha256(‘salt’)”

So check the database to see if the password is hashed first.

1 Like

Thanks. Actually I reset my password and tried it. It worked. Apparently there was a problem with the HASH value in the database table. Thanks again for your inputs.

1 Like

If you use a register form, remember hashing the password too, on the insert step with the same hash method you use on the login step

Thank you your help. I did finally resolve the issue. The problem was do to the encryption of the password. Once the password was reset it fixed the issue.