diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-01-28 21:32:50 -0800 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-28 21:32:50 -0800 | 
| commit | 3584856afcf9f745d09dcd56b63932c8bf0716d1 (patch) | |
| tree | ef6982bea4b42e92f969524092d84600826e4bd3 /modules/gallery/helpers/identity.php | |
| parent | b6322b1c9f9b0914fa639dba3361f1ff6fe05ab5 (diff) | |
Use auth::login() when we initially log in the admin user.
Diffstat (limited to 'modules/gallery/helpers/identity.php')
| -rw-r--r-- | modules/gallery/helpers/identity.php | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/modules/gallery/helpers/identity.php b/modules/gallery/helpers/identity.php index ef93d72f..6df860d6 100644 --- a/modules/gallery/helpers/identity.php +++ b/modules/gallery/helpers/identity.php @@ -68,9 +68,7 @@ class identity_Core {        // upconvert into a user.        // @todo set the user name into the session instead of 2 and then use it to get the user object        if ($user === 2) { -        $user = IdentityProvider::instance()->admin_user(); -        self::set_active_user($user); -        $session->set("user", $user); +        auth::login(IdentityProvider::instance()->admin_user());        }        if (!$session->get("group_ids")) { @@ -82,7 +80,7 @@ class identity_Core {        }      } catch (Exception $e) {        // Log it, so we at least have so notification that we swallowed the exception. -      Kohana_Log::add("error", "Load_user Exception: " . +      Kohana_Log::add("error", "load_user Exception: " .                        $e->getMessage() . "\n" . $e->getTraceAsString());        try {          Session::instance()->destroy(); | 
