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

Fix a login error when using a password manager #5261

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Cloud11PL
Copy link
Member

@Cloud11PL Cloud11PL commented Nov 19, 2024

It prevents 2 concurrent login attempts that sometimes happen when using a password manager (eg. 1Password). It caused not fully handled error regarding login attempt delay due to too many attempts from one IP. It also adds an error message for that case.

What type of PR is this?

  • 💅 Refactor
  • 🌟 Feature
  • 🔥 Bug Fix
  • 🔩 Maintenance
  • 🛠 Workflow CI/CD changes

Related Issues or Documents

  • closes #

Usage Instructions, Screenshots, Recordings

Have you written tests?

  • Yes!
  • No... here is why:

[Optional] Description

Copy link

changeset-bot bot commented Nov 19, 2024

🦋 Changeset detected

Latest commit: 189b7b7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-dashboard Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot temporarily deployed to pr-5261 November 19, 2024 10:10 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5261 November 19, 2024 11:06 Destroyed
@Cloud11PL Cloud11PL changed the title fix too many attempts login error when using a password manager Fix a login error when using a password manager Nov 19, 2024
@Cloud11PL Cloud11PL marked this pull request as ready for review November 19, 2024 11:27
@Cloud11PL Cloud11PL requested a review from a team as a code owner November 19, 2024 11:27
@github-actions github-actions bot temporarily deployed to pr-5261 November 19, 2024 11:31 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5261 November 25, 2024 09:08 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5261 November 25, 2024 10:37 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5261 November 25, 2024 13:36 Destroyed
Comment on lines +216 to +218
const intl = useIntl();
const notify = useNotifier();
const apolloClient = useApolloClient();
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: IMO you should mock them

Copy link
Member Author

Choose a reason for hiding this comment

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

I just checked, they're already mocked in the file

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