Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use auth::login() when we initially log in the admin user.

  • Loading branch information...
commit 3584856afcf9f745d09dcd56b63932c8bf0716d1 1 parent b6322b1
@bharat bharat authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 modules/gallery/helpers/identity.php
View
6 modules/gallery/helpers/identity.php
@@ -68,9 +68,7 @@ static function load_user() {
// 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 @@ static function load_user() {
}
} 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();
Please sign in to comment.
Something went wrong with that request. Please try again.