Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = 'com.flexcodelabs'
version = '0.0.25'
version = '0.0.26'
description = 'Flextuma App'

java {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void seedSystemData() {
seedUser(roleId, "admin", "admin@flextuma.com", "Admin123", roleId);

// Seed system user
seedUser(UUID.fromString("7269df24-g8a0-4776-bd89-4015521bc19d"), "SYSTEM",
seedUser(UUID.fromString("7269df24-68a0-4776-bd89-4015521bc19d"), "SYSTEM",
"system@flextuma.com", "system_secret_key", roleId);

log.info("✅✅✅ System seeding via JDBC completed successfully. ✅✅✅");
Expand All @@ -67,14 +67,14 @@ private void seedUser(UUID userId, String username, String email, String pass, U
String hashedPass = passwordEncoder.encode(pass);

int userResult = jdbcTemplate.update(
"INSERT INTO \"user\" (id, username, name, email, phonenumber, password, type, active, verified, system, password_change_required, created, updated) "
"INSERT INTO \"user\" (id, username, name, email, phonenumber, password, type, active, verified, system, changepassword, created, updated) "
+
"VALUES (?, ?, ?, ?, ?, ?, 'SYSTEM', true, true, true, ?, NOW(), NOW()) "
+
"ON CONFLICT (id) DO NOTHING",
userId, username, username.toUpperCase(), email,
username.equals("SYSTEM") ? "0000000000" : "123456789",
hashedPass, true);
hashedPass, false);
log.info("👤 User seeding result for {}: {} rows affected", username, userResult);

int userRoleResult = jdbcTemplate.update(
Expand Down