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

Update ValidationRules.php #428

Closed
wants to merge 1 commit into from
Closed

Update ValidationRules.php #428

wants to merge 1 commit into from

Conversation

rafinhaa
Copy link
Contributor

@rafinhaa rafinhaa commented Sep 2, 2021

When a request of type "application/json" was received, it caused an Exception of type ErrorException with the message "Undefined offset: 1".
This was because the buildUserFromRequest method in the myth-auth/src/Authentication/Passwords/ValidationRules.php file was not prepared for this request.
This patch fixes this issue.

When a request of type "application/json" was received, it caused an Exception of type ErrorException with the message "Undefined offset: 1".
This was because the buildUserFromRequest method in the myth-auth/src/Authentication/Passwords/ValidationRules.php file was not prepared for this request.
This patch fixes this issue.
@lonnieezell
Copy link
Owner

Sorry to get here so late. If you could add a test for this case I think it's ok. The only possible issue is what if the body is empty?

@rafinhaa
Copy link
Contributor Author

rafinhaa commented Oct 8, 2021

Hi, I have no experience with automated tests, do you have any support material?

@MGatner
Copy link
Collaborator

MGatner commented Apr 27, 2022

This will need the tests (see existing examples) and updates to the docs since it adds an otherwise-hidden feature. @rafinhaa are you around to rebase and update this PR after #517 is merged?

@rafinhaa
Copy link
Contributor Author

I'm working with another technology and I don't have time for these changes right now.

@rafinhaa rafinhaa closed this Apr 27, 2022
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