Skip to content
Extraits de code Groupes Projets
Valider 451f0aab rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Fixing Login UI Tests.

parent e9845a44
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -260,7 +260,12 @@ class Controller extends \Piwik\Plugin\Controller
}
if (is_null($errorMessage)) { // if success, show login w/ success message
$this->redirectToIndex(Piwik::getLoginPluginName(), 'resetPasswordSuccess');
// have to do this as super user since redirectToIndex checks if there's a default website ID for
// the current user and if not, doesn't redirect to the requested action. TODO: this behavior is wrong. somehow.
$self = $this;
Piwik::doAsSuperUser(function () use ($self) {
$self->redirectToIndex(Piwik::getLoginPluginName(), 'resetPasswordSuccess');
});
return null;
} else {
// show login page w/ error. this will keep the token in the URL
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter