refactoring.
This commit is contained in:
@@ -125,7 +125,7 @@ class Cookie {
|
||||
*/
|
||||
public static function forget($name)
|
||||
{
|
||||
return static::put($name, null, -1500);
|
||||
return static::put($name, null, -2000);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -63,9 +63,7 @@ class Auth {
|
||||
|
||||
static::$user = call_user_func(Config::get('auth.user'), Session::get(Auth::user_key));
|
||||
|
||||
$cookie = Cookie::get(Auth::remember_key);
|
||||
|
||||
if (is_null(static::$user) and ! is_null($cookie))
|
||||
if (is_null(static::$user) and ! is_null($cookie = Cookie::get(Auth::remember_key)))
|
||||
{
|
||||
static::$user = static::recall($cookie);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user