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

Fire the login failed event only once when a known user login fails. #16552

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

mvarblow
Copy link
Contributor

Fixes #16551

@Piedone
Copy link
Member

Piedone commented Aug 13, 2024

Any reason you didn't merge @MikeAlhayek? Are we waiting for something or can it be merged?

@MikeAlhayek
Copy link
Member

Because of comments like #16533 (review) . Giving others chance to look at it.

@Piedone
Copy link
Member

Piedone commented Aug 13, 2024

That was for a larger PR with multiple reviewers requested.

@MikeAlhayek
Copy link
Member

Let's merge #16539 first, as it will cause a conflict with this PR. I'll then resolve the conflict and test the necessary commands to handle PR conflicts resulting from the namespace change.

@Piedone
Copy link
Member

Piedone commented Aug 14, 2024

Alright!

Copy link
Contributor

This pull request has merge conflicts. Please resolve those before requesting a review.

@MikeAlhayek
Copy link
Member

@mvarblow can you please re-sync your main branch with OC? You should be able to do that by going to https://github.com/mvarblow/OrchardCore and click Sync form

image

@mvarblow
Copy link
Contributor Author

@MikeAlhayek it looks like you already forced the resync. I resolved the merge conflicts.

@MikeAlhayek MikeAlhayek merged commit 73ad378 into OrchardCMS:main Aug 14, 2024
5 checks passed
@mvarblow mvarblow deleted the fix/double-loginfailed-event branch August 14, 2024 19:08
@MikeAlhayek
Copy link
Member

/backport to release/1.8.3

Copy link
Contributor

Started backporting to release/1.8.3: https://github.com/OrchardCMS/OrchardCore/actions/runs/10565378786

Copy link
Contributor

@MikeAlhayek backporting to release/1.8.3 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Fire the login failed event only once when a known user login fails.
Using index info to reconstruct a base tree...
M	src/OrchardCore.Modules/OrchardCore.Users/Controllers/AccountController.cs
Falling back to patching base and 3-way merge...
Auto-merging src/OrchardCore.Modules/OrchardCore.Users/Controllers/AccountController.cs
CONFLICT (content): Merge conflict in src/OrchardCore.Modules/OrchardCore.Users/Controllers/AccountController.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 Fire the login failed event only once when a known user login fails.
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

@MikeAlhayek an error occurred while backporting to release/1.8.3, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

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.

Login Failed event fires twice if you attempt to sign in using invalid password for an existing user
4 participants