Skip to content

Commit

Permalink
Use identity::set_active_user() instead of auth::login() when we
Browse files Browse the repository at this point in the history
change providers otherwise the user_installer code is going to be
calling auth::login() which causes all kinds of unexpected weirdness,
like it triggers the handler in gallery_event which detects graphics
toolkits, and that's only supposed to run on the first admin login.
  • Loading branch information
bharat committed Jan 29, 2010
1 parent 70b235e commit 9908f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gallery/libraries/IdentityProvider.php
Expand Up @@ -83,7 +83,7 @@ static function change_provider($new_provider) {

module::event("identity_provider_changed", $current_provider, $new_provider);

auth::login($provider->admin_user());
identity::set_active_user($provider->admin_user());
Session::instance()->regenerate();
} catch (Exception $e) {
static $restore_already_running;
Expand Down

0 comments on commit 9908f37

Please sign in to comment.