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", "apisecret": "pcast",
"release": [ "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 // The user is not found, so it's an eligible tester; let's signalize this
response.Type = "T" response.Type = "T"
// Insert the user in the database // // Insert the user in the database
u := models.User{ // u := models.User{
Email: email, // Email: email,
UserType: "T", // UserType: "T",
TestStatus: "TS", // Awaiting test done // TestStatus: "TS", // Awaiting test done
} // }
database.DB.Create(&u) // database.DB.Create(&u)
} else { } else {
// The user is found and it's an admin; let's signalize this // The user is found and it's an admin; let's signalize this
if user.UserType == "A" { if user.UserType == "A" {