Skip to content

fix(auth): block archived users from logging in#787

Merged
ismaeldosil merged 1 commit intomasterfrom
fix/block-archived-login
Jan 28, 2026
Merged

fix(auth): block archived users from logging in#787
ismaeldosil merged 1 commit intomasterfrom
fix/block-archived-login

Conversation

@ismaeldosil
Copy link
Collaborator

Summary

  • Archived users can no longer log into the system
  • When an archived user attempts to sign in, they are immediately signed out and shown an error message
  • Error message: "Your account has been archived. Please contact an administrator."

Changes

  • Modified firebaseEmailSignIn() in Firebase.tsx to check the archived field after authentication
  • If user is archived, sign them out before allowing access

Test plan

  • Verify active users can still log in normally
  • Archive a test user and verify they cannot log in
  • Verify the error message is displayed correctly
  • Unarchive the user and verify they can log in again

Closes CHALK-095

Archived users can no longer log into the system. When an archived user
attempts to sign in, they are immediately signed out and shown an error
message asking them to contact an administrator.

Closes CHALK-095
@ismaeldosil ismaeldosil merged commit 1deaa7b into master Jan 28, 2026
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.

1 participant