You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We found an Issue with this Line. If removing the password input field in the DOM Symfony gets a null here. But NULL compared to '' is not true - so it seems okay and throws no Error.
Checking the password with an "empty($password) === true)" solves the Issue.
The text was updated successfully, but these errors were encountered:
javiereguiluz
changed the title
Passwort authentication not correct
Password authentication not correct
Mar 14, 2018
I don't try to reproduce the bug, but IMHO in this case the condition if(empty($password)) make more sense for me see doc for refresh memory 😄 There is the PR but I can let @SimonRininsland resolves it if he wants.
Cheers Guys
…l1432)
This PR was submitted for the master branch but it was squashed and merged into the 2.8 branch instead (closes#26589).
Discussion
----------
[Ldap] cast to string when checking empty passwords
| Q | A
| ------------- | ---
| Branch? | master for features / 2.7 up to 4.0 for bug fixes <!-- see below -->
| Bug fix? | yes
| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks? | no <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
| Fixed tickets | #26525 <!-- #-prefixed issue number(s), if any -->
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
<!--
Quick fix condition that solved the issue.
-->
Commits
-------
f276989 [Ldap] cast to string when checking empty passwords
Uh oh!
There was an error while loading. Please reload this page.
symfony/src/Symfony/Component/Security/Core/Authentication/Provider/LdapBindAuthenticationProvider.php
Line 77 in 9e82562
We found an Issue with this Line. If removing the password input field in the DOM Symfony gets a null here. But NULL compared to '' is not true - so it seems okay and throws no Error.
Checking the password with an "empty($password) === true)" solves the Issue.
The text was updated successfully, but these errors were encountered: