Skip to content

Commit d5fe2dc

Browse files
fix[installer](startup): switched default credentials to admin:admin
1 parent 98978d4 commit d5fe2dc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎installer/services/postgres.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ func GetAdminEmail() (string, error) {
6969
containerID := containerIDs[0]
7070

7171
// The instance's administrator: the platform tenant's oldest active admin.
72-
// "admin@localhost" is the placeholder the backend creates when nobody
73-
// supplied an address, so it is not an answer.
72+
// "admin" is the placeholder the backend creates when nobody supplied an
73+
// address, so it is not an answer.
7474
query := `SELECT u.email FROM "user" u ` +
7575
`JOIN user_role ur ON ur.user_id = u.id ` +
7676
`JOIN role r ON r.id = ur.role_id AND r.name = 'ROLE_ADMIN' ` +
7777
`WHERE u.tenant_id = '` + defaultTenantID + `' ` +
78-
`AND u.status = 'active' AND u.email <> 'admin@localhost' ` +
78+
`AND u.status = 'active' AND u.email <> 'admin' ` +
7979
`ORDER BY u.created_at LIMIT 1`
8080
output, err := utils.RunCmdWithOutput("docker", "exec", containerID, "psql", "-U", "postgres", "-d", "utmstack", "-t", "-c", query)
8181
if err != nil {

0 commit comments

Comments
 (0)