[xwiki/xwiki-platform] 6cc9cc: [Misc] Avoid a page load when logging in as a user...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 6cc9cc7c94254b2bf55fe448d723bc23d6f0670c https://github.com/xwiki/xwiki-platform/commit/6cc9cc7c94254b2bf55fe448d723b... Author: Vincent Massol <[email protected]> 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 (#6270) * 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) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications