scripts

package
v0.0.0-...-19cc336 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(s string) bool

CheckPassword checks passwords must be bigger than 8 character with uppercase, lowercase, digits and symbols

func CurrentTokenClaim

func CurrentTokenClaim(c *gin.Context) (*dto.Claims, error)

func ErrorsSliceToStringSlice

func ErrorsSliceToStringSlice(errs []error) []string

func GetToken

func GetToken(c *gin.Context) (*jwt.Token, *dto.Claims, error)

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

func ValidateToken(c *gin.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL