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
db923f86
Commit
db923f86
authored
Jul 10, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4246 from creocoder/advanced-app-user-model-code-style-fixes
Advanced app `User` model code style fixes
parents
41177b02
e306394d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
User.php
apps/advanced/common/models/User.php
+4
-4
No files found.
apps/advanced/common/models/User.php
View file @
db923f86
...
...
@@ -141,7 +141,7 @@ class User extends ActiveRecord implements IdentityInterface
*/
public
function
validatePassword
(
$password
)
{
return
Yii
::
$app
->
getSecurity
()
->
validatePassword
(
$password
,
$this
->
password_hash
);
return
Yii
::
$app
->
security
->
validatePassword
(
$password
,
$this
->
password_hash
);
}
/**
...
...
@@ -151,7 +151,7 @@ class User extends ActiveRecord implements IdentityInterface
*/
public
function
setPassword
(
$password
)
{
$this
->
password_hash
=
Yii
::
$app
->
getSecurity
()
->
generatePasswordHash
(
$password
);
$this
->
password_hash
=
Yii
::
$app
->
security
->
generatePasswordHash
(
$password
);
}
/**
...
...
@@ -159,7 +159,7 @@ class User extends ActiveRecord implements IdentityInterface
*/
public
function
generateAuthKey
()
{
$this
->
auth_key
=
Yii
::
$app
->
getSecurity
()
->
generateRandomKey
();
$this
->
auth_key
=
Yii
::
$app
->
security
->
generateRandomKey
();
}
/**
...
...
@@ -167,7 +167,7 @@ class User extends ActiveRecord implements IdentityInterface
*/
public
function
generatePasswordResetToken
()
{
$this
->
password_reset_token
=
Yii
::
$app
->
getSecurity
()
->
generateRandomKey
()
.
'_'
.
time
();
$this
->
password_reset_token
=
Yii
::
$app
->
security
->
generateRandomKey
()
.
'_'
.
time
();
}
/**
...
...
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