KiOui / TOSTI

Tartarus Order System for Take-away Items
https://tosti.science.ru.nl/
MIT License
11 stars 1 forks source link

For some people logging in almost always creates a new account #565

Open mieraaaaa opened 3 months ago

mieraaaaa commented 3 months ago

For example for Joris Watermans, he gets a new account, his groups are remembered, but his staff status is not, which is kinda annoying as he is in the voorraadcie. This also happens for some more people but not everybody

JobDoesburg commented 3 months ago

Do you maybe know a different name? For the user you mention, the problem has already been fixed manually, so I cannot retrace everything.

Could it be that it is just the is_staff status is forgotten (for all people that this problem concerns)?

@KiOui That maybe related to https://github.com/KiOui/TOSTI/blob/master/website/users/signals.py or https://github.com/KiOui/TOSTI/blob/master/website/users/models.py

It is indeed weird that his date_joined field is set to the last_login, so I guess it's something with the overwritten save method of users, that should fix capitalization (which we dont receive consistently from the SSO service) @KiOui