admin fix

This commit is contained in:
roman
2026-06-10 23:00:58 +02:00
parent 43011f0a77
commit 639baafe4a
2 changed files with 33 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
-- ============================================================
-- CalendarReminder — vytvorenie admin používateľa
-- Heslo: Admin@2025
-- Spusti: mysql -h 192.168.1.68 -u mip -p"mip@2013" calendarreminder < create-admin.sql
-- ============================================================
INSERT INTO Users (Username, Email, PasswordHash, CreatedAt)
VALUES (
'admin',
'nas@culak.sk',
'$2a$11$8yPi0lcuKsJH6/Ncvm2A6O4Nw9gZblkCZ23PxbibW5MVfG06syp5S',
UTC_TIMESTAMP()
)
ON DUPLICATE KEY UPDATE
Email = VALUES(Email),
PasswordHash = VALUES(PasswordHash);
-- Over výsledok
SELECT id, Username, Email, CreatedAt FROM Users WHERE Username = 'admin';