Getting a 401 Unauthorised error when pressing submit on Login Form

I realise I forgot to put a . between www and google in my success url but I dont think this should impact the server form

Please double check your records if you are entering the right login details.

Also i see an error - both in the go to url action and in the alert. You should be using single quotes ' and not double quotes " there when you wrap the static URL and the error message text.

WRONG: "your/url/here"
RIGHT: 'your/url/here'

Thanks - I’ve checked my login details (db screenshots attached)

I’ve changed the double quotes to single, cleared my browser cache and tried again but get the same result

What field types are you using in your database?

Are you 100% sure you are connected to this database on this server exactly, and not some local/testing one?

Please zip and send me the following file so i can inspect it: dmxConnect/api/data/security/login.php
Send it as a personal message please.

Yes - I’m sure - I inspected the connection at the start of the video (if not the one I cc’d you in then the other one in the thread).

I will zip the file and send as requested

Thank you for all your help in resolving this issue.

I noticed that there was no primary key on the user table in my db and couldn’t add one - I think it had become corrupt. I deleted and recreated the table and now the login page works.

Thanks again

1 Like