-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Create Users Via Concord #3467
Comments
This is caused by this commit: django/django@4b9330c which makes it necessary for custom authentication backends to explicitly take a model-my-watershed/src/mmw/apps/user/backends.py Lines 23 to 31 in 79cd1bd
|
This bug causes new users to be created successfully, but they are unable to be authenticated afterwards. This leads to multiple users being created: SELECT c.concord_id, u.id, u.username, COUNT(p.id) AS projects
FROM user_concorduser c
INNER JOIN auth_user u ON c.user_id = u.id
LEFT JOIN modeling_project p ON u.id = p.user_id
WHERE c.concord_id IN (
SELECT concord_id
FROM user_concorduser
GROUP BY concord_id
HAVING COUNT(user_id) > 1
)
GROUP BY c.concord_id, u.id, u.username
ORDER BY concord_id, projects DESC;
As can be seen above, some users that have tried to login have been unable to, and have had multiple accounts made for them. I'm going to delete the ones with 0 projects when this is deployed, so that those users can login correctly. |
See https://rollbar.com/WikiWatershed/ModelMyWatershed/items/221/
The text was updated successfully, but these errors were encountered: