fix(dashboard): keep unverified users on enroll page after join

After email login, auto-enroll was redirecting to /lms or the admin
/courses/:id/lessons route. Unverified users cannot use the LMS yet
(VerifyEmailModal on app routes), which felt like a permission error.

Enroll without verification, but stay on the enroll page with a verify
prompt instead of redirecting until email is confirmed. Also fix custom
domain org lookup to use hostname without backend port.

Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
Cursor Agent
2026-07-10 04:32:10 +00:00
co-authored by Rotimi Best
parent be0085f090
commit f262a092ed
14 changed files with 105 additions and 21 deletions
@@ -892,7 +892,11 @@
"enroll_page": {
"requires_payment_or_invite": "Вам нужно заплатить за этот курс или получить приглашение для получения доступа.",
"back_to_course": "Вернуться к курсу",
"join_course": "Присоединиться к курсу"
"join_course": "Присоединиться к курсу",
"enrolled_success": "You're enrolled in this course.",
"enrolled_verify_email": "You're enrolled! Verify your email to access this course in your learning area.",
"enrolled_success": "You're enrolled in this course.",
"enrolled_verify_email": "You're enrolled! Verify your email to access this course in your learning area."
},
"pricing_section": {
"free": "Бесплатно",