5sControl / 5sControl/5s-frontend

[1h]The administrator account is loaded for a few seconds when logging in using worker credentials

Offen
#974 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @kirilbaskakov Auf GitHub ansehen
bug ESMIL Front QA done Stage ready v. 0.8.1
Vorherrschende Sprache
TypeScript
Sterne
3
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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/)

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
react, typescript
Bereich
authentication, frontend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.