소스 검색

chore: do not show the current login and password (#2969)

Shishkevich D. 5 일 전
부모
커밋
63edc63ab0
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      main.go

+ 1 - 5
main.go

@@ -151,9 +151,7 @@ func showSetting(show bool) {
 			fmt.Println("get current user info failed, error info:", err)
 		}
 
-		username := userModel.Username
-		userpasswd := userModel.Password
-		if username == "" || userpasswd == "" {
+		if userModel.Username == "" || userModel.Password == "" {
 			fmt.Println("current username or password is empty")
 		}
 
@@ -163,8 +161,6 @@ func showSetting(show bool) {
 		} else {
 			fmt.Println("Panel is secure with SSL")
 		}
-		fmt.Println("username:", username)
-		fmt.Println("password:", userpasswd)
 		fmt.Println("port:", port)
 		fmt.Println("webBasePath:", webBasePath)
 	}