mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 01:33:51 -04:00
Use identity::set_active_user() instead of auth::login() when we
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.
This commit is contained in:
@@ -83,7 +83,7 @@ class IdentityProvider_Core {
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user