Add "remember" to ignore list
Signed-off-by: Jeffrey Way <jeffrey@envato.com>
This commit is contained in:
parent
9dd964c316
commit
ff525b995b
|
@ -26,12 +26,13 @@ public function retrieve($id)
|
|||
*/
|
||||
public function attempt($arguments = array())
|
||||
{
|
||||
$user = $this->model()->where(function($query) use($arguments) {
|
||||
$user = $this->model()->where(function($query) use($arguments)
|
||||
{
|
||||
$username = Config::get('auth.username');
|
||||
|
||||
$query->where($username, '=', $arguments['username']);
|
||||
|
||||
foreach( array_except($arguments, array('username', 'password')) as $column => $val )
|
||||
foreach(array_except($arguments, array('username', 'password', 'remember')) as $column => $val)
|
||||
{
|
||||
$query->where($column, '=', $val);
|
||||
}
|
||||
|
|
|
@ -56,12 +56,13 @@ protected function get_user($arguments)
|
|||
{
|
||||
$table = Config::get('auth.table');
|
||||
|
||||
return DB::table($table)->where(function($query) use($arguments) {
|
||||
return DB::table($table)->where(function($query) use($arguments)
|
||||
{
|
||||
$username = Config::get('auth.username');
|
||||
|
||||
$query->where($username, '=', $arguments['username']);
|
||||
|
||||
foreach( array_except($arguments, array('username', 'password')) as $column => $val )
|
||||
foreach(array_except($arguments, array('username', 'password', 'remember')) as $column => $val)
|
||||
{
|
||||
$query->where($column, '=', $val);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue