From 8906b77e191838d69da1ecf9f19eb75b6ffb144b Mon Sep 17 00:00:00 2001 From: alena Date: Tue, 22 Mar 2011 10:25:13 -0700 Subject: [PATCH] bug 9097: default admin email is NULL. It can be reset later with updateUser API. status 9097: resolved fixed --- server/src/com/cloud/server/ConfigurationServerImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/com/cloud/server/ConfigurationServerImpl.java b/server/src/com/cloud/server/ConfigurationServerImpl.java index d98bc084b69..530a29982fc 100644 --- a/server/src/com/cloud/server/ConfigurationServerImpl.java +++ b/server/src/com/cloud/server/ConfigurationServerImpl.java @@ -337,7 +337,6 @@ public class ConfigurationServerImpl implements ConfigurationServer { String firstname = "admin"; String lastname = "cloud"; String password = "password"; - String email = ""; MessageDigest md5 = null; try { @@ -366,8 +365,8 @@ public class ConfigurationServerImpl implements ConfigurationServer { } // now insert the user - insertSql = "INSERT INTO `cloud`.`user` (id, username, password, account_id, firstname, lastname, email, created) " + - "VALUES (" + id + ",'" + username + "','" + sb.toString() + "', 2, '" + firstname + "','" + lastname + "','" + email + "',now())"; + insertSql = "INSERT INTO `cloud`.`user` (id, username, password, account_id, firstname, lastname, created) " + + "VALUES (" + id + ",'" + username + "','" + sb.toString() + "', 2, '" + firstname + "','" + lastname + "',now())"; txn = Transaction.currentTxn(); try {