uchill/backend/apps/users
Dev Server d5ebd2898a feat: invite by link, 8-char code input, universal_code in profile
Backend:
- New InvitationLink model: token, mentor, created_at, used_by, is_banned
- Links expire after 12h, single-use, multiple active links allowed
- generate-invitation-link: creates InvitationLink (doesn't overwrite old)
- info-by-token: validates expiry/usage/ban before returning mentor info
- register-by-link: validates InvitationLink, marks used_by on registration
- Migration 0013_invitation_link_model

Frontend:
- Profile: show user's universal_code with copy button
- InviteDialog: 8 separate input boxes for code (auto-focus, paste support)
- InviteDialog: new "По ссылке" tab — generate link, copy, show expiry
- /invite/:token page: public registration page with mentor info preview
- Auto-login after invite link registration (setSession + checkUserSession)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 17:11:12 +03:00
..
geo_data fix bugs 2026-02-23 15:44:27 +03:00
management full 2026-02-13 20:35:13 +03:00
middleware mobile 2026-02-18 01:15:06 +03:00
migrations feat: invite by link, 8-char code input, universal_code in profile 2026-03-12 17:11:12 +03:00
templates/emails full 2026-02-14 02:45:50 +03:00
tests feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
__init__.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
admin.py tur 2026-02-23 23:21:14 +03:00
apps.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
cache_utils.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
dashboard_views.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
geo_utils.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
mentorship_views.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
mixins.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
models.py feat: invite by link, 8-char code input, universal_code in profile 2026-03-12 17:11:12 +03:00
nav_badges_views.py full 2026-02-14 02:45:50 +03:00
permissions.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
profile_views.py feat: invite by link, 8-char code input, universal_code in profile 2026-03-12 17:11:12 +03:00
serializers.py tur 2026-02-23 23:21:14 +03:00
services.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
signals.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
student_progress_views.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
tasks.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
telegram_auth.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
telegram_utils.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
urls.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
utils.py feat: add all project files to develop branch 2026-02-12 22:45:07 +03:00
views.py fix bugs 2026-02-21 23:50:05 +03:00