You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# LOGIN SYSTEM IN PHP AND MYSQL: User Authentication system.
2
+
3
+
###### VERSION 1.0.0
4
+
5
+
User authentication in web developemen is used to authorized and
6
+
restrict users to certain pages in a web appplication.
7
+
8
+
## REGISTERATION SYSTEM
9
+
10
+
### DATABASE TABLE IN MYSQL
11
+
12
+
The database used is MySQL, so you'll need a MySQL database to run create the users table.
13
+
Run the `sql.sql` file in MySQL database to create users table
14
+
15
+
### CONFIGURATION FILE
16
+
17
+
The PHP script to connect to the database is in `config/config.php` directory.
18
+
Replace credentials to in `config.php` to match your server credentials.
19
+
20
+
### REGISTERATION FORM AND SCRIPT
21
+
22
+
The `register.php` creates a web form that allows users to register themselves.
23
+
The script generates error if form input is empty and username is has been taking already by another user.
24
+
25
+
## LOGIN SYSTEM
26
+
27
+
### LOGIN FORM AND SCRIPT
28
+
29
+
`login.php` is the login script.
30
+
When a user submit a form with the input of username and password, these inputs will be verified against the credentials data stored in the database, if there is a match then the user will be authorized and granted access to site or page.
31
+
32
+
### WELCOME PAGE
33
+
34
+
User is redirected to `welcome.php` if login is successful.
35
+
36
+
### PASSWORD RESET
37
+
38
+
logged in user can reset password for registered account.
39
+
script is in `password_reset.php`
40
+
41
+
<hr />
42
+
<small>Give this a project ⭐ if you found it useful, and follow me for more interesting future projects</small>
0 commit comments