Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
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
Yeray Santana Hualde
syncEnrollments
Commits
544821bd
Commit
544821bd
authored
May 30, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix eloquent auth driver bug.
parent
2dd8b242
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
46 deletions
+0
-46
eloquent.php
laravel/auth/drivers/eloquent.php
+0
-46
No files found.
laravel/auth/drivers/eloquent.php
View file @
544821bd
...
@@ -18,29 +18,6 @@ class Eloquent extends Driver {
...
@@ -18,29 +18,6 @@ class Eloquent extends Driver {
}
}
}
}
/**
* Login the user assigned to the given token.
*
* The token is typically a numeric ID for the user.
*
* @param mixed $token
* @param bool $remember
* @return bool
*/
public
function
login
(
$token
,
$remember
=
false
)
{
// if the token is an Eloquent model get the primary key
if
(
$token
instanceof
\Eloquent
)
$token
=
$token
->
get_key
();
$this
->
token
=
$token
;
$this
->
store
(
$token
);
if
(
$remember
)
$this
->
remember
(
$token
);
return
true
;
}
/**
/**
* Attempt to log a user into the application.
* Attempt to log a user into the application.
*
*
...
@@ -66,29 +43,6 @@ class Eloquent extends Driver {
...
@@ -66,29 +43,6 @@ class Eloquent extends Driver {
return
false
;
return
false
;
}
}
/**
* Login the user assigned to the given token.
*
* The token is typically a numeric ID for the user.
*
* @param mixed $token
* @param bool $remember
* @return bool
*/
public
function
login
(
$token
,
$remember
=
false
)
{
// if the token is an Eloquent model get the primary key
if
(
$token
instanceof
\Eloquent
)
$token
=
$token
->
get_key
();
$this
->
token
=
$token
;
$this
->
store
(
$token
);
if
(
$remember
)
$this
->
remember
(
$token
);
return
true
;
}
/**
/**
* Get a fresh model instance.
* Get a fresh model instance.
*
*
...
...
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