Merge branch 'QA_4_6'

This commit is contained in:
Michal Čihař 2016-08-02 08:43:22 +02:00
commit 696eeb463d

View File

@ -471,7 +471,11 @@ class AuthenticationCookie extends AuthenticationPlugin
$this->storeUsernameCookie($cfg['Server']['user']);
// Duration = as configured
$this->storePasswordCookie($cfg['Server']['password']);
// Do not store password cookie on password change as we will
// set the cookie again after password has been changed
if (! isset($_POST['change_pw'])) {
$this->storePasswordCookie($cfg['Server']['password']);
}
// Set server cookies if required (once per session) and, in this case,
// force reload to ensure the client accepts cookies