mirror of https://github.com/apache/cloudstack.git
bug 12198: Empty password for system user meed not be encrypted
This commit is contained in:
parent
dc07df3588
commit
31172a4205
|
|
@ -304,7 +304,7 @@ public class ConfigurationServerImpl implements ConfigurationServer {
|
|||
} catch (SQLException ex) {
|
||||
}
|
||||
// insert system user
|
||||
insertSql = "INSERT INTO `cloud`.`user` (id, username, password, account_id, firstname, lastname, created) VALUES (1, 'system', "+DBEncryptionUtil.encrypt("")+", 1, 'system', 'cloud', now())";
|
||||
insertSql = "INSERT INTO `cloud`.`user` (id, username, password, account_id, firstname, lastname, created) VALUES (1, 'system', '', 1, 'system', 'cloud', now())";
|
||||
txn = Transaction.currentTxn();
|
||||
try {
|
||||
PreparedStatement stmt = txn.prepareAutoCloseStatement(insertSql);
|
||||
|
|
|
|||
Loading…
Reference in New Issue