feat(cmd): set or random new password for admin

This commit is contained in:
Andy Hsu
2023-08-06 22:34:02 +08:00
parent 75acbcc115
commit a425392a2b
2 changed files with 49 additions and 4 deletions

View File

@ -28,7 +28,7 @@ func DelUserCacheOnline(username string) {
u := fmt.Sprintf("http://localhost:%d/api/admin/user/del_cache", port)
if port == -1 {
if conf.Conf.Scheme.HttpsPort == -1 {
utils.Log.Infof("[del_user_cache] no open port")
utils.Log.Warnf("[del_user_cache] no open port")
return
}
u = fmt.Sprintf("https://localhost:%d/api/admin/user/del_cache", conf.Conf.Scheme.HttpsPort)
@ -48,5 +48,5 @@ func DelUserCacheOnline(username string) {
utils.Log.Errorf("[del_user_cache] del cache error: %s", msg)
return
}
utils.Log.Infof("[del_user_cache] del user [%s] cache success", username)
utils.Log.Debugf("[del_user_cache] del user [%s] cache success", username)
}