Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
7f5cbce6
Commit
7f5cbce6
authored
May 05, 2013
by
Vladimir Vyachin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix SecurityHelper description
parent
aac49ad9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SecurityHelper.php
framework/helpers/base/SecurityHelper.php
+2
-2
No files found.
framework/helpers/base/SecurityHelper.php
View file @
7f5cbce6
...
@@ -167,11 +167,11 @@ class SecurityHelper
...
@@ -167,11 +167,11 @@ class SecurityHelper
*
*
* ~~~
* ~~~
* // generates the hash (usually done during user registration or when the password is changed)
* // generates the hash (usually done during user registration or when the password is changed)
* $hash = SecurityHelper::
hashPassword
($password);
* $hash = SecurityHelper::
generatePasswordHash
($password);
* // ...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 (
Password
Helper::verifyPassword($password, $hash) {
* if (
Security
Helper::verifyPassword($password, $hash) {
* // password is good
* // password is good
* } else {
* } else {
* // password is bad
* // password is bad
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment