func TestRegisterUser(t *testing.T) { body := register(t) res, err := db.NewUsersDbService().FindId(body["email"], nil) if res == nil || err != nil { t.Fatal("User not created correctly", res, err); } }
func (a *AuthController) LoginUserHandler(c *gin.Context) { loginUser(c, db.NewUsersDbService()) }
func (a *AuthController) RegisterUserHandler(c *gin.Context) { registerUser(c, db.NewUsersDbService()) }