Add hashing for link password and update link update service method

This commit is contained in:
Andrey Chervyakov 2021-04-04 16:36:13 +06:00
parent a01f540a29
commit f4684be37d
4 changed files with 79 additions and 32 deletions

View file

@ -16,7 +16,6 @@ type ResourceModel struct {
Id string `json:"id"`
Name string `json:"name"`
RedirectURL string `json:"redirectUrl"`
Password string `json:"password"`
CreationTime int64 `json:"creationTime"`
}
@ -46,7 +45,6 @@ func MapEntityToModel(entity *Link) ResourceModel {
Id: entity.Id,
Name: entity.Name,
RedirectURL: entity.RedirectURL.String(),
Password: entity.Password,
CreationTime: entity.CreationTime.Unix(),
}
}