Skip to content

Remove door codes for expired memberships - #2184

Merged
adarshm11 merged 1 commit into
devfrom
bug/expire-door-codes
Aug 25, 2026
Merged

Remove door codes for expired memberships#2184
adarshm11 merged 1 commit into
devfrom
bug/expire-door-codes

Conversation

@adarshm11

Copy link
Copy Markdown
Contributor

Motivation

When SCE memberships expire, those members are no longer entitled to a door code. Furthermore, door codes are reset by the department every academic year. Clark never addressed these issues, and memberships that expired were still tied to a door code months, and even years, after expiry.

The Fix

Every time a user logs into Clark, there is a check to see when their membership expires. If it's already expired, the door code is removed from their profile and their status is set back to NON_MEMBER. This is the correctly expected behavior of an expired membership, and fixes any potential scenarios where previous members have access to door codes that may or may not work on the room door.

@plsdoant plsdoant left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔥

@adarshm11
adarshm11 merged commit 53921c8 into dev Aug 25, 2026
7 of 8 checks passed
@adarshm11
adarshm11 deleted the bug/expire-door-codes branch August 25, 2026 20:10
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.

3 participants