Skip to content

Commit

Permalink
bug #21 Add Annotation to P0wnedPassword (ickbinhier)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.0-dev branch.

Discussion
----------


| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->
| License       | MIT

Without this change i become this error:

The class "Rollerworks\Component\PasswordStrength\Validator\Constraints\P0wnedPassword" is not annotated with @annotation. Are you sure this class can be used as annotation? If so, then you need to add @annotation to the _class_ doc comment of "Rollerworks\Component\PasswordStrength\Validator\Constraints\P0wnedPassword".


Commits
-------

f7332c1 Add Annotation to P0wnedPassword
  • Loading branch information
sstok authored May 2, 2018
2 parents 80b0578 + f7332c1 commit 43fe0c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Validator/Constraints/P0wnedPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

use Symfony\Component\Validator\Constraint;

/**
* @Annotation
*/
class P0wnedPassword extends Constraint
{
public $message = 'This password was found in a database of compromised passwords. It has been used {{ used }} times. For security purposes you must use something else.';
Expand Down

0 comments on commit 43fe0c5

Please sign in to comment.