undone insertion of test user

main
Nilo Roberto C Paim 2024-08-20 07:31:19 -03:00
parent 788196cc3e
commit 9320344445
2 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
{
"version": "1.1.1",
"version": "2.1.1",
"apisecret": "pcast",
"release": [
{

View File

@ -222,13 +222,13 @@ func Checkuser(c *fiber.Ctx) error {
// The user is not found, so it's an eligible tester; let's signalize this
response.Type = "T"
// Insert the user in the database
u := models.User{
Email: email,
UserType: "T",
TestStatus: "TS", // Awaiting test done
}
database.DB.Create(&u)
// // Insert the user in the database
// u := models.User{
// Email: email,
// UserType: "T",
// TestStatus: "TS", // Awaiting test done
// }
// database.DB.Create(&u)
} else {
// The user is found and it's an admin; let's signalize this
if user.UserType == "A" {