debug
parent
c8e01bf51e
commit
2571b43e10
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue