feat: 导出udm-auth未加密数据
This commit is contained in:
1 parent
63dfdd2f47
commit
618bc5c1f9
1 file changed
+1
-1
@@ -718,7 +718,7 @@ func (s *UDMAuthController) ExportDec(c *gin.Context) {
|
||||
c.JSON(200, resp.ErrMsg(err.Error()))
|
||||
return
|
||||
}
|
||||
sshClient.RunCMD("sudo rm -rf /user/local/etc/udm/authdata.txt")
|
||||
sshClient.RunCMD(fmt.Sprintf("sudo rm -rf %s", nePath))
|
||||
defer os.Remove(localFilePath)
|
||||
c.FileAttachment(localFilePath, filepath.Base(nePath))
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user