corrected bug on email verification
parent
ffddfc4552
commit
aefd5db1cd
|
|
@ -213,20 +213,21 @@ func Checkuser(c *fiber.Ctx) error {
|
||||||
} else {
|
} else {
|
||||||
// The user is found and it's a pay user; let's signalize this
|
// The user is found and it's a pay user; let's signalize this
|
||||||
if user.UserType == "U" {
|
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 the user doesn't have a channel, it's a pay user that needs to complete the registration
|
||||||
if len(user.Channel) == 0 {
|
if len(user.Channel) == 0 {
|
||||||
log.Printf("User Channel: [%s], size=%d\n", user.Channel, len(user.Channel))
|
|
||||||
response.Type = "RU"
|
response.Type = "RU"
|
||||||
|
} else {
|
||||||
|
response.Type = "U"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The user is found and it's a social; let's signalize this
|
// The user is found and it's a social; let's signalize this
|
||||||
if user.UserType == "S" {
|
if user.UserType == "S" {
|
||||||
response.Type = "S"
|
|
||||||
// If the user doesn't have a channel, it's a social user that needs to complete the registration
|
// If the user doesn't have a channel, it's a social user that needs to complete the registration
|
||||||
if user.Channel == "" {
|
if len(user.Channel) == 0 {
|
||||||
response.Type = "SR"
|
response.Type = "RS"
|
||||||
|
} else {
|
||||||
|
response.Type = "S"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -237,8 +238,6 @@ func Checkuser(c *fiber.Ctx) error {
|
||||||
if user.Cancelled == "S" {
|
if user.Cancelled == "S" {
|
||||||
// User is cancelled
|
// User is cancelled
|
||||||
response.Type = "UC"
|
response.Type = "UC"
|
||||||
} else {
|
|
||||||
response.Type = user.UserType
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue