Using php to verify hashed password in mit login

As I was creating a new project (MIT plus database), I ran into a small problem in the login screen. In the register screen, I hashed the password input of the user using password_hash() through php. The password is sent to the database via a web component.

Now on the login screen, when I click login, even with the correct id and password, the landing screen won't open. I attached the blocks in MIT and the php script that handles the login below. Thank you so much!!!!

received_590280480109676
received_8609194645846539

What is the responseContent: "success", "failed" or "not found" - or something else ?

Nothing. As in nothing. It stays in login screen. I'm actually thinking that the php script is the problem. Do you think its the problem too?

UPDATE: IT IS WORKING! Forgot an = sign after the psw text box. :sob: OMG thank you for your time.

I might suggest that although you are connecting to your php server over an https connection, to be more secure you could generate the hash on your app then store the hash as the password on the server. You would only need to do a password comparison (hash v hash) when signing in.

1 Like