- start.sh: Add options 8 (Seed LITE - skip cities) and 9 (Run All Tests) - seeder: Add seed:lite, seed:fast scripts and --skip-locations flag - seeder: Remove superadmin creation (now via backend migration) - backend: Update 010_seed_super_admin.sql with hardcoded hash (Admin@2025! + pepper) - backend: Expand jwt_service_test.go with 5 new tests (+10% coverage) - frontend: Fix api.test.ts URL duplication bug, add error handling tests - seeder: Add SQL data files to .gitignore
22 lines
524 B
Go
22 lines
524 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"golang.org/x/crypto/bcrypt"
|
|
)
|
|
|
|
func main() {
|
|
password := "Admin@2025!"
|
|
pepper := "gohorse-pepper"
|
|
passwordWithPepper := password + pepper
|
|
|
|
hash, err := bcrypt.GenerateFromPassword([]byte(passwordWithPepper), bcrypt.DefaultCost)
|
|
if err != nil {
|
|
fmt.Printf("Error: %v\n", err)
|
|
return
|
|
}
|
|
|
|
fmt.Printf("-- New hash for superadmin (password: Admin@2025!, pepper: gohorse-pepper)\n")
|
|
fmt.Printf("UPDATE users SET password_hash = '%s' WHERE identifier = 'superadmin';\n", string(hash))
|
|
}
|