5sControl / 5sControl/5s-frontend
[1h]The administrator account is loaded for a few seconds when logging in using worker credentials
- Langage dominant
- TypeScript
- Étoiles
- 3
- Forks
- 1
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
**Description**
На несколько секунд загружается аккаунт администратора после входа в систему под кредами рабочего
**Precondition**
Войти в учётную запись администратора и выйти из неё
**Steps to reproduce:**
1. Войти в систему, используя креды любого работника
2. Баг появляется
**Actual result:**
на несколько секунд загружается страница администратора, после чего появляется страница работника
**Expected result:**
сразу загружается аккаунт работника
**Attachments:**
https://github.com/user-attachments/assets/e8358e7f-e4a2-4290-bf8e-6ee2549e2614
**Environment**
Device: Samsung S20+
OS: Android 13
Browser: Google Chrome
Version: 131.0.6778.260
[stage.5scontrol.com/mobile](https://stage.5scontrol.com/mobile/)
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
The issue describes a flash of the admin page before the worker page loads. Look at the authentication flow and routing logic, likely in components handling login and session state. Check for any cached user data or redirect delays. The linked pull request #979 (merged) may have addressed this, so review its changes to understand the fix.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- react, typescript
- Domaine
- authentication, frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100