Skip to content

Commit

Permalink
generatePasswordHash() documentation example syntax error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
InsaneSkull authored Jan 5, 2018
1 parent 2a742ce commit 533f9ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/base/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public function generateRandomString($length = 32)
* // ...save $hash in database...
*
* // during login, validate if the password entered is correct using $hash fetched from database
* if (Yii::$app->getSecurity()->validatePassword($password, $hash) {
* if (Yii::$app->getSecurity()->validatePassword($password, $hash)) {
* // password is good
* } else {
* // password is bad
Expand Down

0 comments on commit 533f9ed

Please sign in to comment.