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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
e306394d
Commit
e306394d
authored
Jul 10, 2014
by
Alexander Kochetov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Advanced app `User` model code style fixes
parent
41177b02
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 @
e306394d
...
...
@@ -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