Files
inter-hub/Application/Migration/1744416000-seed-admin-user.sql
tegwick 6078c48289
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
fix: registry list crash and logout 405
IHP NameSupport cannot parse trailing-underscore field names at runtime.
orderByAsc #label_ in all four registry list actions (and the API V2
equivalents) crashed the page with ParseErrorBundle. Changed to orderByAsc
#name which avoids the NameSupport conversion path entirely.

textField #label_ in the four registry form views has the same issue.
Replaced with a plain <input> element that reads entry.label_ directly.

Logout <a href={DeleteSessionAction}> sent GET but IHP requires DELETE.
IHP includes methodOverridePost middleware, so a POST form with
_method=DELETE handles this correctly.

Also corrected the seed admin-user migration hash from bcrypt to the
pwstore-fast format (sha256|17|...) that IHP actually uses.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 00:05:02 +02:00

17 lines
642 B
SQL

-- Seed default admin user for initial local deployment.
-- Password: admin1234!
-- Hash generated with pwstore-fast (Crypto.PasswordStore.makePassword, strength 17)
-- which is the format IHP's verifyPassword uses. NOT bcrypt.
-- IMPORTANT: Change this password immediately after first login via the profile settings.
-- Workplan: IHUB-WP-0014 (A4 — admin user seeding)
INSERT INTO users (id, email, password_hash, name, failed_login_attempts, created_at)
VALUES (
uuid_generate_v4(),
'admin@inter-hub.local',
'sha256|17|hyVUQpp0hhegCg2oM0lUHQ==|jSwCi+tJUlKCW6sT6nn23/r71fd0GSiVOo48JSrXyWc=',
'Admin',
0,
now()
);