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

Blocked user's cookie setup #457

Merged
merged 4 commits into from
Dec 2, 2021
Merged

Blocked user's cookie setup #457

merged 4 commits into from
Dec 2, 2021

Conversation

MrOrz
Copy link
Member

@MrOrz MrOrz commented Nov 29, 2021

This is part of the 2nd milestone of user blocking mechanism.

  • Loads blockedReason in AppLayout and set cookie isUserBlocked if blockedReason persists
    • Once the cookie is set, there is no way to clear the cookie, unless they use devtools.
  • useIsUserBlocked() hook can read if the current browser is owned by blocked user both on browser & during server-side render
  • Logging out does not clear isUserBlocked cookie, thus the value is persisted

@MrOrz MrOrz self-assigned this Nov 29, 2021
@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.363% when pulling abba9a8 on block-user-cookie into 9a68c27 on master.

@MrOrz MrOrz merged commit 20c9b0b into master Dec 2, 2021
@MrOrz MrOrz mentioned this pull request Dec 4, 2021
@MrOrz MrOrz deleted the block-user-cookie branch December 12, 2021 13:43
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.

None yet

4 participants