RezinaLMS-BackEnd/internal/web_server/handlers
n3p-tun3 a81fe3cd19 feat(auth): add learner device sessions with a 2-device limit
- 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.
2026-11-23 17:38:48 +03:00
..
activity_log_actor.go Initial commit 2026-10-19 17:59:34 +03:00
activity_log_helper.go Initial commit 2026-10-19 17:59:34 +03:00
activity_logs.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
admin_export.go Adapt backend and demo curriculum for makeup artistry and clean up services 2026-11-02 13:09:31 +03:00
admin_subscription_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
admin_user_detail_handler.go Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
admin.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
affiliates_test.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
affiliates.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
analytics_field_normalize_test.go Adapt backend and demo curriculum for makeup artistry and clean up services 2026-11-02 13:09:31 +03:00
analytics_field_normalize.go Adapt backend and demo curriculum for makeup artistry and clean up services 2026-11-02 13:09:31 +03:00
analytics_handler.go Complete Swagger documentation and validate API contracts 2026-10-28 23:11:18 +03:00
analytics_params.go Initial commit 2026-10-19 17:59:34 +03:00
arifpay.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
auth_handler_refresh_token_test.go fix(auth): return the rotated refresh token 2026-11-23 15:03:39 +03:00
auth_handler.go feat(auth): add learner device sessions with a 2-device limit 2026-11-23 17:38:48 +03:00
chapa_direct.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
chapa.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
chapter_handler.go Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
chapter_quiz_handler.go Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
chapter_quiz_operations_test.go Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
chapter_quiz_operations.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
common_handler.go fix: global setting, company override settings, bet and ticket fixes for multi tenant 2025-08-25 07:23:55 +03:00
common.go fix: version on route, better logs, error display, cleaning up code 2025-07-13 01:23:08 +03:00
content_access_gate.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
content_publish_gate.go Initial commit 2026-10-19 17:59:34 +03:00
course_checkout.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
course_handler.go Prefix admin panel APIs and preserve customer API paths 2026-10-28 22:56:34 +03:00
course_video_access_test.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
email_template.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
exam_prep_assessment_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
exam_prep_catalog_course_handler.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
exam_prep_lesson_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
exam_prep_module_handler.go Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
exam_prep_practice_handler.go Adapt backend and demo curriculum for makeup artistry and clean up services 2026-11-02 13:09:31 +03:00
exam_prep_progress_helper.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
exam_prep_unit_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
export_filters.go Adapt LMS backend for makeup education 2026-10-20 13:41:40 +03:00
faq.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
field_option.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
file_handler_media_test.go feat: PDF_ATTACHMENT stimulus, dynamic question_text rules, admin builder docs 2026-06-04 11:07:02 -07:00
file_handler.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
handlers.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
institutions.go afro SMS and partial ArifPay Payment Gateway integrations 2025-12-18 18:06:26 +03:00
issue_reporting.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
learning_contracts.go Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
lesson_handler.go Prefix admin panel APIs and preserve customer API paths 2026-10-28 22:56:34 +03:00
lms_persona_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
lms_progress_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
lms_reorder_handler.go Prefix admin panel APIs and preserve customer API paths 2026-10-28 22:56:34 +03:00
media_source_fetcher.go Initial commit 2026-10-19 17:59:34 +03:00
mobile_app_version_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
module_handler.go Prefix admin panel APIs and preserve customer API paths 2026-10-28 22:56:34 +03:00
mongoLogger.go Complete Swagger documentation and validate API contracts 2026-10-28 23:11:18 +03:00
notification_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
outbound_email_form.go Initial commit 2026-10-19 17:59:34 +03:00
payment_success_page.go Initial commit 2026-10-19 17:59:34 +03:00
payments_admin.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
practice_full_update_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
practice_handler.go Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
practice_pagination_test.go Adapt backend and demo curriculum for makeup artistry and clean up services 2026-11-02 13:09:31 +03:00
practice_publish_gate.go Initial commit 2026-10-19 17:59:34 +03:00
program_handler.go Prefix admin panel APIs and preserve customer API paths 2026-10-28 22:56:34 +03:00
public_catalog_handler_test.go Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
public_catalog_handler.go Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
question_type_builder.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
questions.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
ratings.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
rbac_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
recommendation.go institution service + more PopOK callback 2025-06-22 21:49:16 +03:00
referal_handlers.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
referrals_test.go Enforce LMS subscriptions and add configurable referral commissions 2026-10-28 17:51:56 +03:00
response_contracts_test.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
response_contracts.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
settings_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
subscription_checkout_link.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
subscriptions.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
swagger_admin_shared.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
swagger_referral_models.go Add course purchases and affiliate program with documented APIs 2026-11-20 22:39:13 +03:00
swagger_service_info.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
team_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
team_invitation_guard.go Initial commit 2026-10-19 17:59:34 +03:00
team_invitation_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
team_password_reset_handler.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
thumbnail_helper.go Initial commit 2026-10-19 17:59:34 +03:00
transaction_approver.go Prefix admin panel APIs and preserve customer API paths 2026-10-28 22:56:34 +03:00
user_sessions_handler_test.go feat(auth): add learner device sessions with a 2-device limit 2026-11-23 17:38:48 +03:00
user_sessions_handler.go feat(auth): add learner device sessions with a 2-device limit 2026-11-23 17:38:48 +03:00
user.go feat(auth): add learner device sessions with a 2-device limit 2026-11-23 17:38:48 +03:00
video_engagement_handler.go Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
vimeo.go Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00