Skip to content

Commit

Permalink
Merge pull request #12 from nicoSWD/password-salt
Browse files Browse the repository at this point in the history
Remove custom salt example
  • Loading branch information
jeremykendall committed Apr 3, 2015
2 parents ad9fa6c + ab5c2d3 commit aaced47
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ if ($result->isValid()) {
```

If your application requires options other than the `password_hash` defaults,
you can set both the `salt` and `cost` options with `PasswordValidator::setOptions()`.
you can set the `cost` option with `PasswordValidator::setOptions()`.

``` php
$options = array(
'salt' => 'SettingYourOwnSaltIsNotTheBestIdea',
'cost' => 11,
'cost' => 11
);
$validator->setOptions($options);
```
Expand Down

0 comments on commit aaced47

Please sign in to comment.