https://github.com/programerr01/log_auth
Login and authentication system
https://github.com/programerr01/log_auth
Last synced: about 1 year ago
JSON representation
Login and authentication system
- Host: GitHub
- URL: https://github.com/programerr01/log_auth
- Owner: programerr01
- Created: 2022-10-11T15:24:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-11T15:26:45.000Z (over 3 years ago)
- Last Synced: 2025-04-05T15:11:28.587Z (about 1 year ago)
- Language: PHP
- Size: 210 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP AUTHENTICATION
A simple, secure login and signup system with PHP and MySQL with user account verification and confirmation.
### Signup/Login Workflow
1. Create new user using register.php form (note: validation occurs both client and server side)
Validation requires:
* Passwords to match and be at least 6 characters
* Valid email address
* Unique username
2. Password gets hashed
3. User gets added to database as unverified
4. Email is sent to user email with verification link
5. User (or admin) clicks verification link which verifies user in the database
6. Verified user may now log in
7. Logged in user can change his/her password by using forgot1.php
8. Simple logout button in index.php to destroy user's session



### INSTALLATION
#### Creating the MySQL Database
~~~SQL
CREATE TABLE `users` (
`user_id` int(11) NOT NULL,
`username` varchar(32) NOT NULL,
`password` varchar(32) NOT NULL,
`first_name` varchar(32) NOT NULL,
`last_name` varchar(32) NOT NULL,
`State` varchar(100) NOT NULL,
`email` varchar(1024) NOT NULL,
`email_code` varchar(32) NOT NULL,
`active` int(11) NOT NULL DEFAULT '0'
)
~~~
### Setup core/connect.php, core/database/connect.php, core/functions/connect.php, core/functions/users.php
~~~php