feat: add authentication and admin features
- Added `jose` library for JWT token generation and verification. - Implemented login functionality with token storage using cookies. - Created `HeaderAdmin` component for admin panel with login/logout capabilities. - Developed `LoginForm` component for user authentication. - Added `Table` component to display data with caching from localStorage. - Introduced `SubHeaderAdmin` for additional admin actions. - Enhanced `database.js` with functions for admin login and fetching table data. - Updated `server.js` to handle new routes for login and table data retrieval. - Modified `package.json` and `package-lock.json` to include new dependencies.
This commit is contained in:
@@ -5,11 +5,9 @@ import React from "react";
|
||||
|
||||
const Home: React.FC = () => {
|
||||
return (
|
||||
<>
|
||||
<Layout title="MCS Lose - Registrieren">
|
||||
<MainForm />
|
||||
</Layout>
|
||||
</>
|
||||
<Layout title="MCS Lose - Registrieren">
|
||||
<MainForm />
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user