mirror of
https://github.com/goharbor/harbor.git
synced 2025-03-11 06:04:11 +01:00
Merge pull request #8582 from ethan-daocloud/patch-1
core/main.go: logging message correction
This commit is contained in:
commit
c1ad0518c9
@ -73,7 +73,7 @@ func updateInitPassword(userID int, password string) error {
|
||||
return fmt.Errorf("Failed to update user encrypted password, userID: %d, err: %v", userID, err)
|
||||
}
|
||||
|
||||
log.Infof("User id: %d updated its encypted password successfully.", userID)
|
||||
log.Infof("User id: %d updated its encrypted password successfully.", userID)
|
||||
} else {
|
||||
log.Infof("User id: %d already has its encrypted password.", userID)
|
||||
}
|
||||
@ -181,7 +181,7 @@ func main() {
|
||||
|
||||
password, err := config.InitialAdminPassword()
|
||||
if err != nil {
|
||||
log.Fatalf("failed to get admin's initia password: %v", err)
|
||||
log.Fatalf("failed to get admin's initial password: %v", err)
|
||||
}
|
||||
if err := updateInitPassword(adminUserID, password); err != nil {
|
||||
log.Error(err)
|
||||
|
Loading…
Reference in New Issue
Block a user