摘要:
参考链接(原文有错,本文已更正)默认的表结构:CREATE TABLE tbl_user ( id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, username VARCHAR(128) NOT NULL, password VARCHAR(128) NOT NULL, email VARCHAR(128) NOT NULL);User.php(路径 models/) 添加如下加密方法/** * @return boolean validate user */public function validatePassword(... 阅读全文