Commit 88c8cf6c authored by Taylor Otwell's avatar Taylor Otwell

refactoring.

parent 6810b99d
...@@ -125,7 +125,7 @@ class Cookie { ...@@ -125,7 +125,7 @@ class Cookie {
*/ */
public static function forget($name) public static function forget($name)
{ {
return static::put($name, null, -1500); return static::put($name, null, -2000);
} }
} }
\ No newline at end of file
...@@ -63,9 +63,7 @@ class Auth { ...@@ -63,9 +63,7 @@ class Auth {
static::$user = call_user_func(Config::get('auth.user'), Session::get(Auth::user_key)); 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 = Cookie::get(Auth::remember_key)))
if (is_null(static::$user) and ! is_null($cookie))
{ {
static::$user = static::recall($cookie); static::$user = static::recall($cookie);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment