mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
Fix the issue that initial administrator can not login with specified
password
This commit is contained in:
parent
3d13e64d16
commit
fc8937de95
@ -107,7 +107,7 @@ public class DefaultDataManager implements DataManager, Serializable {
|
||||
@Override
|
||||
public void complete() {
|
||||
User user = (User) getSetting();
|
||||
user.setPassword(passwordService.encryptPassword("admin"));
|
||||
user.setPassword(passwordService.encryptPassword(user.getPassword()));
|
||||
userManager.save(user, null);
|
||||
idManager.init(User.class);
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ public class DefaultPersistManager implements PersistManager {
|
||||
try ( Connection conn = getConnection();
|
||||
Statement stmt = conn.createStatement();) {
|
||||
for (String sql: sqls) {
|
||||
logger.debug("Executing sql: " + sql);
|
||||
logger.trace("Executing sql: " + sql);
|
||||
if (failOnError) {
|
||||
stmt.execute(sql);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user