revsys / django-tos

A small app to ensure your users re-agree to Terms of Service changes
BSD 3-Clause "New" or "Revised" License
153 stars 42 forks source link

Need to restart the server every time a user accept or reject the TOS #43

Closed goromachine closed 4 years ago

goromachine commented 4 years ago

If I start the server and log in with a user that didn't accept or reject the TOS before, it just became on a loop at the /confirm/ page. image

As seen on the image, it makes the redirect but it keeps making the redirect to the TOC acceptance page.

If I restar the server it stops doing that and works fine for the previously accepted users. Maybe I configured something wrong?

Thank you

nicholasserra commented 4 years ago

Did you figure this one out?

goromachine commented 4 years ago

No, this is still happening to me.

the basic use case is: Register a new user (Django allauth used here), then it redirects to the accept terms and conditions acceptance page, and no matter what I do (accept, reject, reload the main url of the page) it keeps redirecting to the acceptance page. If I access to my database and check the UserAgreements the object is there. And if I reload the server it stop doing that and starts working as expected (detecting that the user is accepted).

If you need more info about it that could help please ask for it.

goromachine commented 4 years ago

This seems to be working since I fixed the translation issue.