mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 21:48:14 +00:00
poprawki bezpieczeństwa
This commit is contained in:
+7
-8
@@ -87,6 +87,11 @@ export enum AuthState {
|
||||
'UNAUTHORIZED' = 2,
|
||||
}
|
||||
|
||||
export interface IUser {
|
||||
name: string;
|
||||
id: number;
|
||||
}
|
||||
|
||||
export interface IStore {
|
||||
dataState: string;
|
||||
authState: AuthState;
|
||||
@@ -101,9 +106,8 @@ export interface IStore {
|
||||
routesModalVisible: boolean;
|
||||
currentStation: SceneryRowItem | null;
|
||||
selectedStationName: string;
|
||||
token: string | null;
|
||||
user: { name: string; id: string } | null;
|
||||
isAuthorized: boolean;
|
||||
// token: string | null;
|
||||
user: IUser | null;
|
||||
notifyDiscord: boolean;
|
||||
alertMessage: string;
|
||||
confirmMessage: string;
|
||||
@@ -117,8 +121,3 @@ export interface ILoginResponse {
|
||||
token: string;
|
||||
user: IUser;
|
||||
}
|
||||
|
||||
export interface IUser {
|
||||
name: string;
|
||||
id: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user