mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-19 23:28:20 +01:00
core/main.go: logging message correction
Signed-off-by: ethan <guangming.wang@daocloud.io>
This commit is contained in:
parent
bbc7d1cb24
commit
edd102c3b7
@ -66,7 +66,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)
|
||||
}
|
||||
@ -116,7 +116,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