Matthieu Bessat
3713cc2443
Created a kernel crate to store models and future action implementations. Will be useful to create admin cli.
9 lines
347 B
Bash
Executable file
9 lines
347 B
Bash
Executable file
password_hash="$(echo -n "root" | argon2 salt_06cGGWYDJCZ -e)"
|
|
echo $password_hash
|
|
SQL=$(cat <<EOF
|
|
INSERT INTO users
|
|
(id, handle, email, roles, status, password_hash, created_at)
|
|
VALUES
|
|
('$(uuid)', 'root', 'root@example.org', '[]', 'Active', '$password_hash', '2024-11-30T00:00:00Z');
|
|
EOF)
|
|
echo $SQL | sqlite3 $DB_PATH
|