peppa/openspec/changes/archive/2026-11-17-pep-195-google-merge-accounts/specs/web-auth/spec.md
peppa-bot 03fddf4829 PEP-195: OpenSpec change, спека и память
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 16:13:44 +05:00

14 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## ADDED Requirements
### Requirement: Привязка Google объединяет учётки
Привязка Google-аккаунта, уже входящего в другую учётку без eGov и Gitea, SHALL переносить в текущую учётку проекты, участие в проектах, подписки, Telegram и свой бот, а старую учётку отключать. Учётка со своим eGov или Gitea SHALL не объединяться. Ошибка привязки SHALL показываться в «Настройки».
#### Scenario: Объединение
- **GIVEN** Google «g-1001» входит в учётку «anna.petrova» (только Google) с проектом и Telegram
- **WHEN** пользователь eGov привязывает этот Google
- **THEN** проект и Telegram у учётки eGov, «anna.petrova» отключена
#### Scenario: Чужая учётка с eGov
- **GIVEN** Google «g-4004» входит в учётку с собственным eGov
- **WHEN** другой пользователь привязывает этот Google
- **THEN** отказ «обратитесь к администратору», ничего не перенесено