2021-01-09 20:40:27 +01:00
2021-01-08 16:58:33 +01:00
2021-01-08 20:50:11 +01:00
2021-01-08 21:48:20 +01:00
2021-01-09 20:40:27 +01:00
fts
2021-01-08 21:33:41 +01:00
2021-01-08 21:59:44 +01:00
2021-01-08 20:47:35 +01:00
2021-01-08 21:56:47 +01:00
2021-01-08 19:17:32 +01:00
2021-01-08 21:44:29 +01:00
2021-01-08 21:48:20 +01:00
fts
2021-01-08 21:33:41 +01:00
2021-01-09 20:40:27 +01:00

Login Page POC

Some poc of a login / register setup with php & mysql

Setup:

Dependencies:

  • webserver (tested with nginx)
  • php 7.4
  • mysqld/mariad
  1. Clone this repo
  2. Create a database
  3. Create a user and grant access to database
  4. Change "login.php" & "register.php"
  5. Have fun!

Features:

Implemented

  • Login
  • PHP Session ID
  • Password Validation
  • Name & Surname
  • Menu with different options for logged in users on the /secure.php page
  • Reset password
  • Profile page (/profile.php)

Need implementation:

  • Change password
  • Change email
  • Change Names

Thanks for flying penguin stack overflow stealing! <3

Database Setup:

# mysql -u root -p

in the mysql shell do the following:

CREATE DATABASE usertable;
CREATE USER 'usertable'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON usertable.* TO 'usertable'@'localhost';
FLUSH PRIVILEGES;
exit

Test if you were successfull with:

# mysql -u usertable -p

Import the empty database like this:

# mysql -u usertable --password=password usertable < usertable.sql
Description
No description provided
Readme 629 KiB
Languages
PHP 94.3%
HTML 4.9%
CSS 0.8%