diff --git a/ChangeLog b/ChangeLog index a283d89d1..6089439bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -134,6 +134,7 @@ - [security] Redirect external links to avoid Referer leakage. - [interface] Default to not count tables in database. - patch #3172172 [interface] Shortcut for copying table row. +- bug #3175227 [auth] Reset user cache on login. 3.3.10.0 (not yet released) - patch #3147400 [structure] Aria table size printed as unknown, diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index cb0daa60e..84bfa80ad 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -596,6 +596,12 @@ function PMA_auth_set_user() * whether we come from a fresh cookie login */ define('PMA_COMING_FROM_COOKIE_LOGIN', true); + + /** + * Clear user cache. + */ + PMA_clearUserCache(); + PMA_sendHeaderLocation($redirect_url . PMA_generate_common_url($url_params, '&')); exit(); } // end if diff --git a/libraries/auth/signon.auth.lib.php b/libraries/auth/signon.auth.lib.php index 4215408af..8480c46d0 100644 --- a/libraries/auth/signon.auth.lib.php +++ b/libraries/auth/signon.auth.lib.php @@ -131,6 +131,11 @@ function PMA_auth_check() if (!empty($pma_token)) { $_SESSION[' PMA_token '] = $pma_token; } + + /** + * Clear user cache. + */ + PMA_clearUserCache(); } // Returns whether we get authentication settings or not diff --git a/libraries/common.lib.php b/libraries/common.lib.php index ca391310b..c8d4290e5 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2528,6 +2528,13 @@ function PMA_generate_slider_effect($id, $message)