|
|
|
@@ -10,7 +10,7 @@ import ( |
|
|
|
"github.com/elliotchance/orderedmap" |
|
|
|
) |
|
|
|
|
|
|
|
var opTypes = []int{1, 2, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33} |
|
|
|
var opTypes = []int{1, 2, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 35} |
|
|
|
|
|
|
|
type ClientsManager struct { |
|
|
|
Clients *orderedmap.OrderedMap |
|
|
|
@@ -107,16 +107,18 @@ func initActionQueue() { |
|
|
|
|
|
|
|
func filterUserPrivateInfo(action *models.Action) { |
|
|
|
action.Comment = nil |
|
|
|
action.ActUser.Email = "" |
|
|
|
action.ActUser.Passwd = "" |
|
|
|
action.ActUser.PasswdHashAlgo = "" |
|
|
|
action.ActUser.PrivateKey = "" |
|
|
|
action.ActUser.PublicKey = "" |
|
|
|
action.ActUser.Salt = "" |
|
|
|
action.ActUser.FullName = "" |
|
|
|
action.ActUser.AvatarEmail = "" |
|
|
|
action.ActUser.IsAdmin = false |
|
|
|
action.ActUser.EmailNotificationsPreference = "" |
|
|
|
action.ActUser.IsOperator = false |
|
|
|
if action.ActUser != nil { |
|
|
|
action.ActUser.Email = "" |
|
|
|
action.ActUser.Passwd = "" |
|
|
|
action.ActUser.PasswdHashAlgo = "" |
|
|
|
action.ActUser.PrivateKey = "" |
|
|
|
action.ActUser.PublicKey = "" |
|
|
|
action.ActUser.Salt = "" |
|
|
|
action.ActUser.FullName = "" |
|
|
|
action.ActUser.AvatarEmail = "" |
|
|
|
action.ActUser.IsAdmin = false |
|
|
|
action.ActUser.EmailNotificationsPreference = "" |
|
|
|
action.ActUser.IsOperator = false |
|
|
|
} |
|
|
|
|
|
|
|
} |