Database: blog_db
User: myuser
Pass: mypassword
In CLI put php encode.php password
Secure Login System with PHP and MySQL
File name | |
---|---|
login.php | not secure, controller |
model.php | function authenticate() |
logout.php | logout controller |
home.php | controller with secure content |
profile.php | controller and view secure |
login_form.php | template of login form |
login_success.php | template after success loged in |
login_failure.php | template after failed loged in |
Public part of files are index.php - frontend controller coresponding with post table and with templates/list.php as view
Private part of files are home.php - backend controller coresponding with post table and with templates/home.php as view
index.php and home.php include it
config.php and model.php include it
sudo chown -R www-data cache for develop sudo chmod 777 cache