Branch: refs/heads/misc-faster-login-when-already-logged-in Home: https://github.com/xwiki/xwiki-platform Commit: 01710b57305ff9adbb829bf957f3d9165445ba55 https://github.com/xwiki/xwiki-platform/commit/01710b57305ff9adbb829bf957f3d... Author: Vincent Massol <vincent@massol.net> Date: 2026-08-31 (Mon, 31 Aug 2026) Changed paths: M xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/TestUtils.java Log Message: ----------- [Misc] Avoid a page load when logging in as a user that is already logged in, in the test framework * Check on the page that is already displayed whether the requested user is already logged in, instead of always loading XWiki.Register first to perform that check. When the displayed page answers that the user is logged in, no page is unloaded and no page is loaded at all: that page already carries the anti-CSRF token that the rest of the method needs. * Rename recacheSecretTokenWhenOnRegisterPage() to recacheSecretTokenFromDisplayedPage(), since it reads the token from whatever skinned page is displayed and no longer only from the Register page. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications