hello.js
hello.js copied to clipboard
Instagram Login with Wrong Credentials
Logging in with wrong credentials returns a 404 page with error:
HTTP/1.1 404 Not Found
Sorry, this page isn't available. The link you followed may be broken, or the page may have been removed. Go back to Instagram.
I would think that this error should be caught. This can be reproduced in the online demo.
Here's the HTTP request
POST https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize/%3Fclient_id%3Da3ab84f1ecd5476588fdf50b44fd60e6%26response_type%3Dtoken%26redirect_uri%3Dhttp%3A//mydomain/redirect.html%26display%3Dpage%26state%3D%257B%2522client_id%2522%3A%2522a3ab84f1ecd5476588fdf50b44fd60e6%2522%2C%2522network%2522%3A%2522instagram%2522%2C%2522display%2522%3A%2522page%2522%2C%2522callback%2522%3A%2522_hellojs_nprvib9%2522%2C%2522state%2522%3A%2522%2522%2C%2522redirect_uri%2522%3A%2522http%3A//mydomain/redirect.html%2522%2C%2522scope%2522%3A%2522public_content%2Cbasic%2522%2C%2522page_uri%2522%3A%2522http%3A//mydomain/%2522%257D%26scope%3Dpublic_content%2Bbasic HTTP/1.1
Host: www.instagram.com
csrfmiddlewaretoken=xxxx&username=yyyy&password=zzzz
This seems rather strange what does your implementation of this look like?
Same implementation as in the demo here where you can see the issue: https://adodson.com/hello.js/
Just put in a wrong password.