portfolio/api/service/validate/validateUser.go
2024-09-12 15:34:45 +02:00

15 lines
202 B
Go

package validate
import (
"portfolio/api/types"
)
func UserIsValid(u *types.RegisterUser) bool {
if len(u.Name) > 0 &&
len(u.Email) > 0 &&
len(u.Password) > 0 {
return true
}
return false
}