Documentation ¶
Index ¶
- func CheckPassword(s string) bool
- func CurrentTokenClaim(c *gin.Context) (*dto.Claims, error)
- func ErrorsSliceToStringSlice(errs []error) []string
- func GetToken(c *gin.Context) (*jwt.Token, *dto.Claims, error)
- func UserEntitiesToUserViewDtos(userEntities []*entities.UserEntity) ([]*dto.UserViewDto, error)
- func UserEntityToUserViewDto(userEntity *entities.UserEntity) (dto.UserViewDto, error)
- func ValidateToken(c *gin.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
CheckPassword checks passwords must be bigger than 8 character with uppercase, lowercase, digits and symbols
func UserEntitiesToUserViewDtos ¶
func UserEntitiesToUserViewDtos(userEntities []*entities.UserEntity) ([]*dto.UserViewDto, error)
UserEntitiesToUserViewDtos transforms a slice of UserEntities to a slice of UserViewDtos
func UserEntityToUserViewDto ¶
func UserEntityToUserViewDto(userEntity *entities.UserEntity) (dto.UserViewDto, error)
UserEntityToUserViewDto transforms an UserEntity to an UserViewDto
func ValidateToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.