Skip to content

Fix modern EduPage two-factor login - #109

Open
junckritter wants to merge 1 commit into
EdupageAPI:masterfrom
junckritter:fix-modern-twofactor-login
Open

junckritter wants to merge 1 commit into
EdupageAPI:masterfrom
junckritter:fix-modern-twofactor-login

Conversation

@junckritter

Copy link
Copy Markdown

EduPage’s current JavaScript-based 2FA page no longer exposes the hidden form fields expected by this library. As a result, otherwise-valid credentials could authenticate successfully but fail before 2FA completion.

This change:

  • Detects the current JavaScript 2FA module.
  • Completes code-based and device-confirmed 2FA through EduPage’s current MainLogin RPC action.
  • Loads the authenticated user session after successful verification.
  • Preserves the legacy hidden-form 2FA flow for older EduPage deployments.
  • Adds regression tests for modern-page detection and RPC request parameters.

Related Issue

This addresses the same upstream login-flow regression described in EdupageAPI/edupage-api#101: EduPage moved the login and 2FA UI to a JavaScript-rendered flow, leaving the legacy form parser unable to continue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant