mirror of
https://github.com/moparisthebest/wallabag
synced 2025-02-23 06:11:57 -05:00
[add] insert into users {poche/password}
This commit is contained in:
parent
c4794be936
commit
ee8a49a32d
@ -36,6 +36,7 @@ class Schema
|
|||||||
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE,
|
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE,
|
||||||
username TEXT DEFAULT 'poche',
|
username TEXT DEFAULT 'poche',
|
||||||
password TEXT,
|
password TEXT,
|
||||||
|
roles TEXT DEFAULT '',
|
||||||
email TEXT,
|
email TEXT,
|
||||||
language TEXT DEFAULT 'en_US',
|
language TEXT DEFAULT 'en_US',
|
||||||
items_per_page INTEGER DEFAULT 100,
|
items_per_page INTEGER DEFAULT 100,
|
||||||
@ -48,11 +49,11 @@ class Schema
|
|||||||
)
|
)
|
||||||
");
|
");
|
||||||
|
|
||||||
//$db->query("
|
$db->query("
|
||||||
// INSERT INTO users
|
INSERT INTO users
|
||||||
// (password)
|
(password, roles)
|
||||||
// VALUES ('".\password_hash('poche', PASSWORD_BCRYPT)."')
|
VALUES ('BFEQkknI/c+Nd7BaG7AaiyTfUFby/pkMHy3UsYqKqDcmvHoPRX/ame9TnVuOV2GrBH0JK9g4koW+CgTYI9mK+w==', 'ROLE_USER')
|
||||||
//");
|
");
|
||||||
|
|
||||||
$db->query('
|
$db->query('
|
||||||
CREATE TABLE entries (
|
CREATE TABLE entries (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user