From d6dcab722a4e4f3472d3e4128bd6f4a6d5661a31 Mon Sep 17 00:00:00 2001
From: Syndamia <kamen@syndamia.com>
Date: Sun, 2 Feb 2025 14:23:39 +0200
Subject: feat: Add and show proper admin user

---
 migrations/01-default-data.sql | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'migrations/01-default-data.sql')

diff --git a/migrations/01-default-data.sql b/migrations/01-default-data.sql
index 5168d41..e259438 100644
--- a/migrations/01-default-data.sql
+++ b/migrations/01-default-data.sql
@@ -1,4 +1,8 @@
 USE nwfh;
 
 INSERT IGNORE INTO Users (Username, Password, Role)
-VALUES ("Anon", "", "User");
+VALUES
+    -- Anon cannot be logged into
+    ("Anon", "", "User"),
+    -- Admin password is "Admin"
+    ("Admin", "$2y$10$uAlsPtyuQm/xrKIKGTnnl.VSEKcq6hpKk2ndJGYF3x1YHvTLHY.ai", "Admin");
-- 
cgit v1.2.3

