diff --git a/frontend/cmd/seed-admin/main.go b/frontend/cmd/seed-admin/main.go index be1c2d0..490b0b9 100644 --- a/frontend/cmd/seed-admin/main.go +++ b/frontend/cmd/seed-admin/main.go @@ -40,6 +40,10 @@ func main() { fmt.Fprintln(os.Stderr, "hash:", err) os.Exit(1) } + // Go's bcrypt emits "$2a$"; PHP/Laravel login requires "$2y$" (same + // algorithm, different marker). Rewrite the prefix so the admin can log + // into the Filament panel. Both Go and PHP verify either prefix. + hash = "$2y$" + hash[4:] ctx := context.Background() pool, err := pgxpool.New(ctx, dsn) diff --git a/frontend/seed-admin b/frontend/seed-admin new file mode 100755 index 0000000..6fc41ef Binary files /dev/null and b/frontend/seed-admin differ