8000 Update the Update Account Status API to clear the cookie by stnguyen90 · Pull Request #5561 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update the Update Account Status API to clear the cookie #5561

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

Merged
merged 2 commits into from
May 22, 2023

Conversation

stnguyen90
Copy link
Contributor

What does this PR do?

After a user updates their status, their session no longer works however, the cookie may still exist in their browser, preventing other API calls from completing successfully.

Test Plan

E2E test updated

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

After a user updates their status, their session no longer works
however, the cookie may still exist in their browser, preventing other
API calls from completing successfully.
@eldadfux
Copy link
Member

How does having an invalid cookie interfere with other calls?

@stnguyen90
Copy link
Contributor Author
stnguyen90 commented May 22, 2023

How does having an invalid cookie interfere with other calls?

Since the cookie is still there, API calls result in "User is blocked error" which can prevent progressing in the app/Console.

For example, this shows deleting the account and then refreshing the page/navigating to the console again:

delete-refresh.mov

And here's another with trying to create a new (different) account after deleting:

Screen.Recording.2023-05-22.at.7.42.28.AM.mov

@eldadfux
Copy link
Member

Can we also change the error message? "You can unblock the user from the console" part is not relevant to the person receiving the error.

Remove the "You can unblock the user from the Appwrite console." part
as it is not relevant for the person receiving the error.
@stnguyen90 stnguyen90 requested a review from eldadfux May 22, 2023 20:04
@eldadfux eldadfux merged commit b86ce2d into master May 22, 2023
@stnguyen90 stnguyen90 deleted the fix-delete-account branch May 22, 2023 20:16
@stnguyen90 stnguyen90 mentioned this pull request May 23, 2023
2 tasks
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
0