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 Validate Password filter #309

Merged
merged 1 commit into from
Jun 4, 2018

Conversation

michael-e
Copy link
Member

Fixes #308

@michael-e michael-e requested a review from nitriques June 4, 2018 10:31
// Handle which is the Identity field, either the Member: Username or Member: Email field;
// the data array passed to findMemberIDFromCredentials() needs either 'username' or
// 'email' as key, so we must not use the string 'identity' in this case.
$identity = is_null($this->section->getFieldHandle('identity')) ? 'email' : 'username';
Copy link
Member

Choose a reason for hiding this comment

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

Would ! be better ?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is adopted from here: https://github.com/symphonycms/members/blob/1.10.1/lib/member.symphony.php#L417. I wouldn't like to do it differently when re-using it.

Copy link
Member

Choose a reason for hiding this comment

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

Ok great.

@nitriques nitriques self-assigned this Jun 4, 2018
@nitriques nitriques merged commit 8078923 into symphonycms:integration Jun 4, 2018
@michael-e
Copy link
Member Author

Will you make a bugfix release?

@michael-e michael-e deleted the fix-validate-password branch June 4, 2018 19:13
@michael-e
Copy link
Member Author

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