690401:1326 fix secutities uuid
This commit is contained in:
@@ -57,7 +57,7 @@ import { MigrationModule } from './modules/migration/migration.module';
|
||||
// 1. Setup Config Module พร้อม Validation
|
||||
ConfigModule.forRoot({
|
||||
isGlobal: true,
|
||||
envFilePath: '.env',
|
||||
envFilePath: ['.env', '.env.local'],
|
||||
load: [redisConfig],
|
||||
validationSchema: envValidationSchema,
|
||||
validationOptions: {
|
||||
|
||||
@@ -4,8 +4,8 @@ export const databaseConfig: TypeOrmModuleOptions = {
|
||||
type: 'mysql',
|
||||
host: process.env.DB_HOST || 'localhost',
|
||||
port: Number(process.env.DB_PORT || '3306'),
|
||||
username: process.env.DB_USERNAME || 'root',
|
||||
password: process.env.DB_PASSWORD || 'Center#2025',
|
||||
username: process.env.DB_USERNAME || 'admin',
|
||||
password: process.env.DB_PASSWORD || 'Center2025',
|
||||
database: process.env.DB_DATABASE || 'lcbp3_dev',
|
||||
charset: 'utf8mb4',
|
||||
entities: [__dirname + '/../**/*.entity{.ts,.js}'],
|
||||
|
||||
@@ -97,7 +97,7 @@ export async function seedUsers(dataSource: DataSource) {
|
||||
];
|
||||
|
||||
const salt = await bcrypt.genSalt();
|
||||
const password = await bcrypt.hash('password123', salt); // Default password
|
||||
const password = await bcrypt.hash('Center2025', salt); // Default password (ADR-019 aligned)
|
||||
|
||||
for (const u of usersData) {
|
||||
let user = await userRepo.findOneBy({ username: u.username });
|
||||
|
||||
Reference in New Issue
Block a user