File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,13 @@ A simple PHP authentication system with password hashing. This project is suitab
15
15
16
16
## Installation
17
17
1 . Change the login credentials for the database in the config.php file.
18
- 2 . Dashboard.php only has a sample page where you can only log in with an account. If there is another insert <? php include 'isnotlogged.php' ?>
18
+ ``` sql
19
+ CREATE TABLE users (
20
+ id SERIAL PRIMARY KEY , -- Auto-incrementing primary key for each user
21
+ session VARCHAR (255 ), -- Session information, to manage user sessions
22
+ name VARCHAR (255 ) NOT NULL , -- User's name, cannot be null
23
+ password VARCHAR (255 ) NOT NULL -- User's password, cannot be null
24
+ );
25
+ ```
26
+
27
+ 3 . Dashboard.php only has a sample page where you can only log in with an account. If there is another insert <? php include 'isnotlogged.php' ?>
You can’t perform that action at this time.
0 commit comments