Skip to content
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

Prevent deleted users from logging in #8724

Merged
merged 1 commit into from
May 23, 2024

Conversation

seanh
Copy link
Contributor

@seanh seanh commented May 22, 2024

No description provided.

@seanh seanh requested a review from marcospri May 22, 2024 16:30
@seanh seanh force-pushed the prevent-deleted-users-from-logging-in branch from 810a847 to a8f8bd3 Compare May 22, 2024 16:42
@@ -54,7 +54,7 @@ def validator(self, node, value):
)
raise err from exc

if user is None:
if user is None or user.deleted:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reckon this belongs here:

https://github.com/hypothesis/h/blob/main/h/services/user.py#L158

Is "fetch_for_login" after all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@seanh seanh force-pushed the prevent-deleted-users-from-logging-in branch from a8f8bd3 to 226e018 Compare May 23, 2024 12:45
@seanh seanh requested a review from marcospri May 23, 2024 13:23
@seanh seanh merged commit 56d468b into main May 23, 2024
9 checks passed
@seanh seanh deleted the prevent-deleted-users-from-logging-in branch May 23, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants