Mysql (MariaDB) with PDO: Difference between revisions
From wikiluntti
Line 7: | Line 7: | ||
== Establishing connection to the server == | == Establishing connection to the server == | ||
Store the password into a secure place, thus | Store the password into a secure place, thus above the the www directory. Php can access that. | ||
== Log a user == | == Log a user == |
Revision as of 20:32, 18 September 2021
Introduction
Some of my database stuff is shown.
Establishing connection to the server
Store the password into a secure place, thus above the the www directory. Php can access that.
Log a user
SSL connection. Hash and salt. Php password hashing functions and mainly password_hash
with password_verify
.
Check the database if the username is exists. If it is, fetch the password hash and compare that against the user inputted hash.