5sControl / 5sControl/5s-frontend
[1h]The administrator account is loaded for a few seconds when logging in using worker credentials
- Lingua principale
- TypeScript
- Stelle
- 3
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**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/)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react, typescript
- Ambito
- authentication, frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100