|
|
@ -186,7 +186,7 @@ class SecurityHelper |
|
|
|
* // ...save $hash in database... |
|
|
|
* // ...save $hash in database... |
|
|
|
* |
|
|
|
* |
|
|
|
* // during login, validate if the password entered is correct using $hash fetched from database |
|
|
|
* // during login, validate if the password entered is correct using $hash fetched from database |
|
|
|
* if (SecurityHelper::verifyPassword($password, $hash) { |
|
|
|
* if (SecurityHelper::validatePassword($password, $hash) { |
|
|
|
* // password is good |
|
|
|
* // password is good |
|
|
|
* } else { |
|
|
|
* } else { |
|
|
|
* // password is bad |
|
|
|
* // password is bad |
|
|
|