10000 fix eloquent auth driver bug. · laravel/laravel@544821b · GitHub
[go: up one dir, main page]

Skip to content

Commit 544821b

Browse files
committed
fix eloquent auth driver bug.
1 parent 2dd8b24 commit 544821b

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

laravel/auth/drivers/eloquent.php

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,6 @@ public function retrieve($id)
1818
}
1919
}
2020

21-
/**
22-
* Login the user assigned to the given token.
23-
*
24-
* The token is typically a numeric ID for the user.
25-
*
26-
* @param mixed $token
27-
* @param bool $remember
28-
* @return bool
29-
*/
30-
public function login($token, $remember = false)
31-
{
32-
// if the token is an Eloquent model get the primary key
33-
if ($token instanceof \Eloquent) $token = $token->get_key();
34-
35-
$this->token = $token;
36-
37-
$this->store($token);
38-
39-
if ($remember) $this->remember($token);
40-
41-
return true;
42-
}
43-
4421
/**
4522
* Attempt to log a user into the application.
4623
*
@@ -66,29 +43,6 @@ public function attempt($arguments = array())
6643
return false;
6744
}
6845

69-
/**
70-
* Login the user assigned to the given token.
71-
*
72-
* The token is typically a numeric ID for the user.
73-
*
74-
* @param mixed $token
75-
* @param bool $remember
76-
* @return bool
77-
*/
78-
public function login($token, $remember = false)
79-
{
80-
// if the token is an Eloquent model get the primary key
81-
if ($token instanceof \Eloquent) $token = $token->get_key();
82-
83-
$this->token = $token;
84-
85-
$this->store($token);
86-
87-
if ($remember) $this->remember($token);
88-
89-
return true;
90-
}
91-
9246
/**
9347
* Get a fresh model instance.
9448
*

0 commit comments

Comments
 (0)
0