You probably do not want to log in here. You cannot create any account here, an admin must do this for you. There is not really much to see either.

Anyway here is the login form.

username

password

connect(); if($db_connection->isConnected()) { $user = $db_connection->getUser($username, $password); if($user != null) { $_SESSION["user"] = $user->username; if($user->admin) { $_SESSION["admin"] = true; } header("Location: index.php"); } else { echo "There is no account with this credentials."; } } $db_connection->disconnect(); // hash with password_hash($password, PASSWORD_DEFAULT)) /*if($user == "kajetan" && password_verify($password, '$2y$10$LT4rMKf81UNRlfpKdLHVVOC9IKGrZehg9qqhkJoEMjvmtyubRYtoK')) { $_SESSION["user"] = user; header("Location: index.php"); }*/ } ?>