hfaran / piazza-api

Unofficial Client for Piazza's Internal API
https://hfaran.github.io/posts/reverse-engineering-piazzas-api/
MIT License
185 stars 52 forks source link

login failing "Email or password incorrect" #68

Open langdon opened 9 months ago

langdon commented 9 months ago

However, I have confirmed 5 ways from sunday that the email and password are correct. I experimented with adding urlencoding to the user and pass but that does not seem to be helping. Any ideas? Would really like to be able to use your library to script some of my piazza posts.

langdon commented 9 months ago

tagging @savantes1 for the most recent PR about login.

EddieJ03 commented 8 months ago

I was having a login issue as well. However, it seems to be working on my end after I went into rpc.py and changed line 81 from data=f'from=%2Fsignup&email={email}&password={password}&remember=on&csrf_token={csrf_token}' to

data={
    'csrf_token': csrf_token,
    'email': email,
    'password': password
}

Let me know if this helps.

mrnhtyzgld commented 2 months ago

It worked for me. Thanks!

hfaran commented 2 months ago

Happy to accept the above fix as a PR if anyone would like to put one forth.

mrnhtyzgld commented 2 months ago

hey @hfaran! I have a question about this project, where can i reach you, i have a question about how this works, can i get ur email or smth?

hfaran commented 2 months ago

@mrnhtyzgld Feel free to ask any questions here or open a new issue on Github if you have a different question

savantes1 commented 2 months ago

I'll try to take a look at this today or tomorrow and, hopefully, put in a PR

mrnhtyzgld commented 2 months ago

@hfaran you didnt return to my issue, can you return when available? Sorry for asking.

savantes1 commented 2 months ago

So, clearly, when I said "today or tomorrow", I meant "next week" ;)

I'm pretty sure the pull request I just submitted should resolve this problem