bug #3175227 [auth] Reset user cache on login.
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user