- Track learner sessions and revoke them immediately on every request
- Add a device replacement challenge for logins over the limit
- Add learner and admin endpoints to list and remove devices
- Trim excess sessions when enforcement is enabled
- Stop logging refresh tokens and authorization headers
Enforcement is off by default through DEVICE_LIMIT_ENFORCED.
The refresh endpoint revoked the submitted token but sent it back to the
client, so the next refresh failed and sign-out could not revoke the live
token. Return the new token and cover single-use rotation with a test.
Introduce is_free plans with gateway-free checkout enrollment, require positive pricing for paid plans, and block duplicate category plus period combinations including free versus paid.
Co-authored-by: Cursor <cursoragent@cursor.com>
Remove admin/content team demo accounts and student@yimaru.com; keep a single superadmin upsert and cleanup on reseed.
Co-authored-by: Cursor <cursoragent@cursor.com>
Allow price=0 by replacing required float validation with gte=0 so free plans no longer fail with a misleading required-field error.
Co-authored-by: Cursor <cursoragent@cursor.com>
Allow price=0 by replacing required float validation with gte=0 so free plans no longer fail with a misleading required-field error.
Co-authored-by: Cursor <cursoragent@cursor.com>
Normalize Ethiopian phone inputs for user lookup, accept web Google client IDs for ID token login, and update the checkout integration guide for OTP and social sign-in.
Co-authored-by: Cursor <cursoragent@cursor.com>
Send checkout URLs by email or SMS via POST /subscriptions/request-checkout-link, with LEARNER_WEB_CHECKOUT_BASE_URL config, RBAC permission, rate limiting, and client integration docs.
Co-authored-by: Cursor <cursoragent@cursor.com>
The backfill inserts multiple rows per user and question set when a practice has several parent links, so the old (user_id, question_set_id) constraint must be removed first.
Co-authored-by: Cursor <cursoragent@cursor.com>
Aligns GET /modules and /courses practices with documented API so admin unlink matches the listed items.
Co-authored-by: Cursor <cursoragent@cursor.com>
Batch-load users and team members per page instead of N+1 lookups, and add server-side search on message, action, and resource fields.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add a unique parent constraint after deduplicating links and reject create/update when a course, module, or lesson already has a practice.
Co-authored-by: Cursor <cursoragent@cursor.com>
Users without an active subscription now match Unsubscribed, covering pending payments and lapsed plans alongside never-subscribed learners.
Co-authored-by: Cursor <cursoragent@cursor.com>
Extend UserFilter and GetAllUsers so admins can segment platform users by profile, subscription, engagement, and device fields when building notification audiences.
Co-authored-by: Cursor <cursoragent@cursor.com>
Point scheduled_notifications.created_by at team_members so admin JWT IDs validate, and set TZ=Africa/Addis_Ababa for the Docker app service.
Co-authored-by: Cursor <cursoragent@cursor.com>
Surface underlying load failures in the API message, accept pointer practice types, and keep question counts aligned when set items are missing.
Co-authored-by: Cursor <cursoragent@cursor.com>