learn-the-web / progressinator

A live, online progress tracker for Learn the Web, connected to GitHub & Markbot.
https://progress.learn-the-web.algonquindesign.ca/
1 stars 0 forks source link

Progressinator doesn't update API token #13

Open avidadearthur opened 4 years ago

avidadearthur commented 4 years ago

First of all I would like to thank you for the initiative of opening AC web courses for everyone to learn! By what I have seen so far it's a really comprehensive and didactic content. Regarding the issue, when I changed my github username a few days ago algonquin's website didn't provided me a new API token for using markbot. I revoked access to AC web platform on the Authorized OAuth Apps settings, cleared the website cookies tried to sign in with my new username and the token would still be the same. In the end I just switched back to my old username and I could use the application with no problem. @thomasjbradley

thomasjbradley commented 4 years ago

I think the system tries to match changes to the GitHub username to the same user in the Progressinator database—likely through email address.

avidadearthur commented 4 years ago

Well, this application is quite complex and I'm not familiar with Django but I noticed that on this Migration class the 'UserProfile' model doesn't mention an email field so I wonder if this affects propagating the changes users make on their accounts to the Progressinator database. https://github.com/acgd-learn-the-web/progressinator/blob/00182741d506d23e66c8d54b8d224c69cb04b756/progressinator/core/migrations/0001_initial.py#L33-L40