main
Nilo Roberto C Paim 2024-05-29 18:41:13 -03:00
parent c8e01bf51e
commit 2571b43e10
1 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ func Checkuser(c *fiber.Ctx) error {
// Check if user exists
database.DB.Where("email = ?", email).First(&user)
log.Printf("User Channel: [%s]\n", user.Channel)
log.Printf("User Channel: [%s], size=%d\n", user.Channel, len(user.Channel))
if user.ID == 0 {
// The user is not found; let's check if it's a test user
@ -217,7 +217,7 @@ func Checkuser(c *fiber.Ctx) error {
if user.UserType == "U" {
response.Type = "U"
// If the user doesn't have a channel, it's a pay user that needs to complete the registration
if user.Channel == "" {
if len(user.Channel) == 0 {
response.Type = "RU"
}
}