Hướng dẫn advanced security - php register/login system github - bảo mật nâng cao - đăng ký php / hệ thống đăng nhập github
============ Instruction ============ 1. Create a database (for example, praneethmadush) and import the "users.sql" file into this database. 2. Open the "user.php" file => change the $dbHost, $dbUsername, $dbPassword, and $dbName variable's value as per your phpMyAdmin details. 3. Open the "userAccount.php" file and change the email content, from address, and $resetPassLink variable valur (website base URL) as per your project. 4. Browse the "index.php" file on the browser and check the PHP Login System and forgot password functionality. Show
4 không thể thay đổi Chỉnh sửa hồ sơ đã có thông tin hiện có để người dùng không phải nhập lại mọi thứ nếu anh ta chỉ muốn chỉnh sửa thông tin hiện tại một chút.
Mật khẩu hiện tại cần thiết để thay đổi mật khẩu.Thay đổi mật khẩu cũng yêu cầu xác nhận / nhập lại mật khẩu mới.
Hình ảnh hồ sơ người dùng cũng có thể được thay đổi.
$serverName = "localhost"; $dBUsername = "root"; $dBPassword = "examplePassword"; $dBName = "loginsystem"; $conn = mysqli_connect($serverName, $dBUsername, $dBPassword, $dBName, 3307); if (!$conn) { die("Connection failed: ". mysqli_connect_error()); }
$SMTPuser = ''; $SMTPpwd = 'some-example-password'; $SMTPtitle = "KLiK inc.";
Bắt đầuCơ sở dữ liệu đã chứa hai tài khoản được tạo sẵn để bạn khám phá xung quanh. Nếu không đủ, hãy đến $SMTPuser = ''; $SMTPpwd = 'some-example-password'; $SMTPtitle = "KLiK inc.";4 và bắt đầu tạo tài khoản mới. Tài khoản hiện có:
Đặc trưng
Các thành phầnNgôn ngữ
Môi trương phat triển
Cơ sở dữ liệuDBMSAPIKhung và thư việnPlugin bên ngoài
Thông tin chi tiết
Hệ thống đăng ký / đăng ký
Hệ thống đăng nhập
Hệ thống hồ sơ
Hệ thống chỉnh sửa hồ sơ
Hệ thống liên hệ
DBMS
$sql = "select uidUsers from users where uidUsers=?;"; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { header("Location: ../signup.php?error=sqlerror"); exit(); } else { mysqli_stmt_bind_param($stmt, "s", $userName); mysqli_stmt_execute($stmt); mysqli_stmt_store_result($stmt); } Điều này đã được sử dụng để tạo username: admin password: admin 0 trên username: admin password: admin 1, vì không có ai giống như trong Linux. Plugin này đã được sử dụng để gửi và nhận email trên localhost, điều này là không cần thiết trên miền trực tiếpThông tin chi tiết
|