feat: implement authentication flow with login page, middleware protection, and session-based role management
This commit is contained in:
@@ -3,7 +3,7 @@ export interface User {
|
||||
name: string;
|
||||
email: string;
|
||||
phone: string;
|
||||
role: 'biker' | 'admin' | 'manager' | 'staff' | 'accountant' | 'investor' | 'shop' | 'merchant';
|
||||
role: 'biker' | 'admin' | 'manager' | 'staff' | 'accountant' | 'investor' | 'swap-station' | 'merchant';
|
||||
avatar?: string;
|
||||
status: 'active' | 'pending' | 'inactive';
|
||||
createdAt: string;
|
||||
@@ -164,7 +164,7 @@ export const users: User[] = [
|
||||
{ id: 'u5', name: 'Staff User', email: 'staff@jaiben.com', phone: '01710000003', role: 'staff', status: 'active', createdAt: '2023-07-01' },
|
||||
{ id: 'u6', name: 'Accountant User', email: 'accountant@jaiben.com', phone: '01710000004', role: 'accountant', status: 'active', createdAt: '2023-07-01' },
|
||||
{ id: 'u7', name: 'Investor User', email: 'investor@email.com', phone: '01720000001', role: 'investor', status: 'active', createdAt: '2023-08-01' },
|
||||
{ id: 'u8', name: 'Shop Owner', email: 'shop@email.com', phone: '01730000001', role: 'shop', status: 'active', createdAt: '2023-09-01' },
|
||||
{ id: 'u8', name: 'Swap Station Owner', email: 'swap@jaiben.com', phone: '01730000001', role: 'swap-station', status: 'active', createdAt: '2023-09-01' },
|
||||
{ id: 'u9', name: 'Merchant User', email: 'merchant@email.com', phone: '01740000001', role: 'merchant', status: 'active', createdAt: '2023-10-01' },
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user