diff options
Diffstat (limited to 'endpoints/lib/auth')
-rw-r--r-- | endpoints/lib/auth/MySQL.php | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/endpoints/lib/auth/MySQL.php b/endpoints/lib/auth/MySQL.php index c23346c..bf7caf6 100644 --- a/endpoints/lib/auth/MySQL.php +++ b/endpoints/lib/auth/MySQL.php @@ -21,17 +21,18 @@ */ - /** - struct of db: - CREATE TABLE users( - username VARCHAR(20) PRIMARY KEY, - password VARCHAR(40), - admin ENUM('0','1') DEFAULT '0' - )ENGINE=InnoDB; - - INSERT INTO users(username,password,admin) - VALUES("admin","$1$65CMtT1M$GSDBTEZ6o5Web.4cDL6rz1",'1'); /*user:admin, pass:admin*/ - +/** + * struct of db: + * CREATE TABLE users( + * username VARCHAR(20) PRIMARY KEY, + * password VARCHAR(40), + * admin ENUM('0','1') DEFAULT '0' + * )ENGINE=InnoDB; + * + * user:admin, pass:admin + * INSERT INTO users(username,password,admin) + * VALUES("admin","$1$65CMtT1M$GSDBTEZ6o5Web.4cDL6rz1",'1') + * */ class phpvbAuthMySQL implements phpvbAuth { |