admin fix
This commit is contained in:
@@ -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';
|
||||
Reference in New Issue
Block a user